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.
  • It's a slick trick, and useful.
    --
    • Randal L. Schwartz
    • Stonehenge
  • For what it's worth, this sort of directed dispatch has applications when working with pseudo-classes such as NEXT [cpan.org] and EVERY [cpan.org] . As a practical example when we're doing object construction:

    use NEXT;

    sub new {
          my $class = shift;
          my $this = bless({},$class);

          # Call all my parental initalizers,
          # in the correct order, in one step.
          $this->EVERY::LAST::_init(@_);

          return $this;
    }