Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I don't quite understand the idiom that uses take without a corresponding gather. Would you mind describing how and why it works, and (if relevant) what common pattern it's a shorthand for? Is there a takeless gather?
  • Hi,

    Thanks for the question. There actually is a corresponding gather - it's in the final multi-method in the program (which is actually the one we always invoke initially - the other variants are just "helpers" - if we were writing this as a module we'd probably call those something else and not export them).

    The thing to take note of is that we look at the dynamic scope when finding the gather handler. The multi-variant we call first calls out to the other candidates from within the gather block, and thus w