http://qs321.pair.com?node_id=248935

crenz has asked for the wisdom of the Perl Monks concerning the following question:

I've been reading Dan Sugalski's excellent blog "Squawks of the Parrot. He talks about continuations in two articles (1, 2), and it is an interesting read, but I have to confess I still don't understand them. Then I super-searched and found Perl and Prolog and Continuations... oh my!, with some sample code using continuations right at the beginning. That helped me to see the light a bit, but not too much.

Can somebody provide some code samples of what continuations are and what you would want to use them for? Thanks for excusing my ignorance :)