![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: shift vs. @_ (where @_ evaluates to 1)by pfaut (Priest) |
on May 09, 2003 at 17:58 UTC ( #256952=note: print w/replies, xml ) | Need Help?? |
my $strFoo = @_ evaluates @_ in scalar context. Arrays in scalar context return their size. What you want is my ($strFoo) = @_ which evaluates @_ in list context returning its values.
In Section
Seekers of Perl Wisdom
|
|