go ahead... be a heretic | |
PerlMonks |
Re: Need an $a and $b as in perl's sort routineby simonm (Vicar) |
on Jan 11, 2006 at 00:57 UTC ( [id://522362]=note: print w/replies, xml ) | Need Help?? |
If you only have one implicit target variable, use the variable that's already been set aside for implicit targets -- $_.
It's easy to local $_ before calling the sub, and with $_ everyone will know what you're doing.
In Section
Seekers of Perl Wisdom
|
|