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 :)


In reply to (Perl6) Groking Continuations by crenz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":