Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

An introduction to POE

by RMGir (Prior)
on Aug 09, 2003 at 20:05 UTC ( [id://282468]=perltutorial: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
            #_stop     => \&handler_stop,
          }
      );
    
  2. or download this
    $poe_kernel->run();
    exit;
    
  3. or download this
    sub handler_start {
      my ($kernel, $heap, $session) = @_[KERNEL, HEAP, SESSION];
    ...
      # ask for the prompt event to get run next
      $kernel->yield('prompt');
    }
    
  4. or download this
    sub handler_prompt {
      my ($kernel, $heap, $session) = @_[KERNEL, HEAP, SESSION];
    ...
      # this will make the timeout event fire in 10 seconds
      $kernel->delay('timeout',10);
    }
    
  5. or download this
    sub handler_timeout {
      my ($kernel, $heap, $session) = @_[KERNEL, HEAP, SESSION];
    ...
      # queue is empty resulting in shutdown
      $heap->{wheel}=undef;
    }
    
  6. or download this
    sub handler_gotLine {
      my ($kernel, $heap, $session, $arg, $exception) = 
    ...
      # new prompt
      $kernel->yield('prompt');
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perltutorial [id://282468]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-19 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found