Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Passing $2 to a subby japhy (Canon) |
on Feb 13, 2001 at 22:53 UTC ( [id://58191]=note: print w/replies, xml ) | Need Help?? |
$_ is not the argument passed the function. To get that, you need to access the @_ array -- you want the first element, which is $_[0].
japhy -- Perl and Regex Hacker
In Section
Seekers of Perl Wisdom
|
|