![]() |
|
XP is just a number | |
PerlMonks |
Re^3: please explain some codeby happy.barney (Friar) |
on Jul 18, 2011 at 11:39 UTC ( [id://915146]=note: print w/replies, xml ) | Need Help?? |
"my $dir = @_" is scalar context, so $dir will contain number of elements in @_ "my ($dir) = @_" is list context, so $dir will contain first value of @_ (if exists)
In Section
Seekers of Perl Wisdom
|
|