in reply to use of typeglob aliases

List::MoreUtils::pairwise localizes typeglobs to *a and *b from the caller's package, which (I think) is a similar idea. For general parameter passing it seems a little outdated. Which version of Advanced Perl Programming? I don't remember seeing it in the 2nd Edition, and can't find it as I re-skim through the book. If you could provide a little more context (chapter, etc.) from the book maybe we could look to see what thought process went into it.


Dave

Replies are listed 'Best First'.
Re^2: use of typeglob aliases
by Anonymous Monk on Sep 05, 2013 at 16:22 UTC
    copyright 1997

      That is the 1st Edition of the book. In 1997 people were using Perl 5.003 and 5.004. Much has changed since then.

      In 2005, when the 2nd edition was published, Perl 5.8.6 was its contemporary. Much has changed since then as well.

      I think the 2nd Edition's treatment on typeglobs is about the best anywhere. But I can't comment on the 1st Edition. Where did you find it?


      Dave