I usually use
sub my_sub { my ($arg1, $arg2) = @_; ... }
in my functions. So the equivalent of these would be:
Is this reasonable?sub my_sub { my ($arg1, $arg2) = @_ ? @_ : $_; ... }
In reply to Re: passing $_ to my function
by blm
in thread passing $_ to my function
by arc_of_descent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |