.\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.05) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .ie \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .el \{\ . de IX .. .\} .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "Acme::POE::Knee 3pm" .TH Acme::POE::Knee 3pm "2009-07-21" "perl v5.10.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Acme::POE::Knee \- Time sliced pony race using the POE kernel. .SH "REQUIREMENTS" .IX Header "REQUIREMENTS" .Vb 2 \& Acme::POE::Knee requires the POE module to run. You can get that as well \& from CPAN or look at poe.sourceforge.net .Ve .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 2 \& #!/usr/bin/perl \-w \& use strict; \& \& # Use POEny! \& use Acme::POE::Knee; \& \& # Every Acme::POE::Knee race will require a set of arguments. \& # There are defaults but it\*(Aqs just more fun to set these \& # yourselves. We set a distance the ponies must run and of course \& # we name our race ponies! You\*(Aqll have to specify the maximum \& # delay a pony can have before reaching the next stage. \& # The lower the delay, the higher the chances are the pony will \& # win the race. \& \& my $pony = new Acme::POE::Knee ( \& dist => 20, \& ponies => { \& \*(Aqdngor\*(Aq => 5, \& \*(AqAbigail\*(Aq => 5.2, \& \*(AqCo\-Kane\*(Aq => 5.4, \& \*(AqMJD\*(Aq => 5.6, \& \*(Aqacme\*(Aq => 5.8, \& }, \& ); \& \& # start the race \& $pony\->race( ); \& \& exit; .Ve .SH "QUICK LINKS" .IX Header "QUICK LINKS" Please see the samples directory in \s-1POE\s0's distribution for several well-commented sample and tutorial programs. .PP Please see for an excellent, and more importantly: gradual, introduction to \s-1POE\s0. .SH "DESCRIPTION" .IX Header "DESCRIPTION" POE::Knee is an acronym of \*(L"Pony\*(R". We all like ponies. And wouldn't we love to race ponies? Well, that's what Acme::POE::Knee is for! .PP It's great for those friday afternoons at the office, where you wonder who will pay the beer tab. Whoever 'wins' the race, loses! .PP You specify a distance the ponies must run, and a maximum delay before the pony will reach the next step. So, the bigger the delay, the bigger the distance between multiple ponies can be. .PP Of course this wouldn't be any fun if we couldn't name the ponies ourselves. Here, we simply put all our race ponies in an array reference and the Acme::POE::Knee module will take care of the rest. .SH "USING Acme::POE::Knee" .IX Header "USING Acme::POE::Knee" Using Acme::POE::Knee is really easy. This simple progam would already suffice: .PP .Vb 2 \& use strict; \& use Acme::POE::Knee; \& \& my $pony = new Acme::POE::Knee; \& $pony\->race(); \& exit; .Ve .PP This will use the defaults of the POE::Knee module, but you can of course specify your own arguments, as shown in the synopsis. .SH "The Use of Acme::POE::Knee" .IX Header "The Use of Acme::POE::Knee" Use, yes... Usefull? Probably not. This was written in responce to a rather persistant meme on #perl (you know who you are!). Basicly, we all wanted ponies. Well folks, here it is. .PP It's source might be interesting to look at for newcomers to \s-1POE\s0 to see how this time slicing works. .SH "Learning more about POE" .IX Header "Learning more about POE" .IP "The \s-1POE\s0 Mailing List" 2 .IX Item "The POE Mailing List" \&\s-1POE\s0 has a mailing list at perl.org. You can receive subscription information by sending e\-mail: .Sp .Vb 2 \& To: poe\-help@perl.org \& Subject: (anything will do) \& \& The message body is ignored. .Ve .Sp All forms of feedback are welcome. .IP "The \s-1POE\s0 Web Site" 2 .IX Item "The POE Web Site" \&\s-1POE\s0 has a web site where the latest development snapshot, along with the Changes file and other stuff may be found: .IP "SourceForge" 2 .IX Item "SourceForge" \&\s-1POE\s0's development has moved to SourceForge as an experiment in project management. You can reach \s-1POE\s0's project summary page at . .SS "Author" .IX Subsection "Author" .IP "Jos Boumans" 2 .IX Item "Jos Boumans" Jos Boumans is . POE::Knee is his brainchild. .IP "Rocco Caputo" 2 .IX Item "Rocco Caputo" Rocco Caputo is . \s-1POE\s0 itself is his creation. .SS "\s-1COPYRIGHT\s0" .IX Subsection "COPYRIGHT" Copyright (c) 2001, Jos Boumans. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the terms of the Perl Artistic License (see http://www.perl.com/perl/misc/Artistic.html) .PP Except where otherwise noted, \s-1POE\s0 is Copyright 1998\-2001 Rocco Caputo. All rights reserved. \s-1POE\s0 is free software; you may redistribute it and/or modify it under the same terms as Perl itself.