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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Reserved words (Score:2)
mirod
Re:Reserved words (Score:1)
Well, there's no such thing as a "reserved method" really. These are just methods defined on the (built-in) Routine class. Sub and Method and Submethod just derive from this class and thus you get .wrap and .unwrap available on them.
callsame, callwith, nextsame and nextwith are all built-in subs. They aren't recognized by the compiler specially, they just dispatch like any old subroutine. (Under the hood, they are implemented in terms of a candidate list plus scope and lexpad introspection. This same candidate list mechanism is what gives you deference or calling in a method to the next parent. That's one of the things I'm currently hacking on for my Hague Grant.)
Hope this helps,
Jonathan
Reply to This
Parent