Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: (Semi-OT) Coroutine vs Continuation?

by ikegami (Patriarch)
on Sep 13, 2004 at 10:12 UTC ( [id://390526]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub input    {                    ...; return $value;  }
    sub process1 { my ($input ) = @_; ...; return $result; }
    ...
          )
       )
    );
    
  2. or download this
    sub input    { my (        $c) = @_; ...; &$c($value ); }
    sub process1 { my ($input, $c) = @_; ...; &$c($result); }
    ...
          ) }
       ) }
    );
    
  3. or download this
    sub input    { my (        $c) = @_; ...; @_ = ($value ); goto(&$c); }
    sub process1 { my ($input, $c) = @_; ...; @_ = ($result); goto(&$c); }
    ...
          ) }
       ) }
    );
    
  4. or download this
    goto line1;
    
    ...
    line2: { push(@_, 'line3'); goto process1; }
    line3: { push(@_, 'line4'); goto process2; }
    line4: {                    goto output;   }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-19 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found