I wouldn't be too concerned. This particular issue is similar to something like:
my @x = split; You just need to realize that the command doesn't make sense without an argument. None is given, so it must be using "the current thing" - whatever that may be in the particular context. Eric On Thu, 3 Aug 2006 09:59:28 -0500, djgoku <[EMAIL PROTECTED]> wrote: > On 8/3/06, Eric <[EMAIL PROTECTED]> wrote: >> nah... they're doing some shortcutting. >> my $scalar = shift; >> >> is the same thing as saying: >> >> my $scalar = shift @_; >> >> Depending on the context, it could be pulling parameters off of a > function call or pulling the first item off of "the current thing". > > That mistake doesn't make me feel so good about what I have learned so > far in Perl, since I am just finishing up Learning Perl 4th edition. I > guess making mistakes makes you remember not to do that again, and > remember there is lots of shortcuts that can be used =). > _______________________________________________ > kc mailing list > [email protected] > http://mail.pm.org/mailman/listinfo/kc -- Eric _______________________________________________ kc mailing list [email protected] http://mail.pm.org/mailman/listinfo/kc
