There's more than one way to do things | |
PerlMonks |
Re^4: Accessing Arguments inside Subroutines via @_by roboticus (Chancellor) |
on Mar 20, 2015 at 22:35 UTC ( [id://1120811]=note: print w/replies, xml ) | Need Help?? |
Since perl can do multiple assignments in one swell foop, this would work too, avoiding the temporary variable:
...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|