>>>>> "Nathan" == Nathan Wiger <[EMAIL PROTECTED]> writes:

Nathan> The key difference is this: $_[0] always contains the first method
Nathan> argument, regardless of whether you're in an object-oriented or
Nathan> function-oriented context. So, if you need to support both (like CGI.pm
Nathan> and my own File::Remote must), you don't have to write some special
Nathan> method that detects whether $_[0] is a valid class ref (see
Nathan> self_or_default in CGI.pm).

yes, I like this.

Nathan> This fixes a lot of stuff. Plus, "self" is one char shorter than
Nathan> "shift"! ;-)

Heh!  All that typing I would have saved over the years, would
probably be equal to the number of characters I've typed here
debating this point. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to