http://www.perlmonks.org?node_id=187857

So, if I understand coroutines correctly, what about the following idea?

Am I missing anything here? This implementation seems a lot simpler (and closer to Perl6 syntax) then the Coro bundle on the CPAN.

As far as I can tell, this would still be a rather limited implementation and might not work with closures. However, it seems so obvious that I know I have to be missing something...

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.