The stupid question is the question not asked | |
PerlMonks |
Re: Passing with $_ instead of @_ in anonymous subsby stefp (Vicar) |
on Oct 28, 2002 at 09:05 UTC ( [id://208470]=note: print w/replies, xml ) | Need Help?? |
$_ is visible within your methods.
All you have to add at the beginning of your method is:
But you can't expect to behave so as to automagically modify $_ if you modify $_[0].
In Section
Seekers of Perl Wisdom
|
|