Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Why is this incorrect?by rafl (Friar) |
on Mar 17, 2006 at 02:18 UTC ( [id://537368]=note: print w/replies, xml ) | Need Help?? |
$_ is a global. Beside that to get the first parameter you passed to your subs you should use
as it is the first element in the @_ array, which contains all arguments to the sub. Beside that you should not use $ in sub names, you should not use & in function calls and you should use warnings. Cheers, Flo
In Section
Seekers of Perl Wisdom
|
|