Slash Boxes
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.
More | Login | Reply
Loading... please wait.
  • I've ranted a few times on Perlmonks [] when people get "closure" and "anon sub" mixed up.

    A closure is any subroutine that needs to grab its environment because it's going out of scope, and may or may not be named.

    An anonymous subroutine is a coderef, and may or may not be a closure.

    I've got code to demonstrate all four types of subroutines (named vs anonymous, closure vs not) at Monks somewhere.

    • Randal L. Schwartz
    • Stonehenge