.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" 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" '' . ds C` . ds C' '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 >0, 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. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Acme::POE::Knee 3pm" .TH Acme::POE::Knee 3pm "2022-11-27" "perl v5.36.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 "VERSION" .IX Header "VERSION" version 1.12 .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 "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 "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 "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... Useful? Probably not. This was written in response to a rather persistent meme on #perl (you know who you are!). Basicly, we all wanted ponies. Well folks, here it is. .PP Its 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: .SH "AUTHORS" .IX Header "AUTHORS" .IP "\(bu" 4 Jos Boumans .IP "\(bu" 4 Rocco Caputo .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" This software is copyright (c) 2011 by Jos Boumans. .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.