Maybe something along the lines like:
sub my_sub { my $argument = shift || $_; # do things with $argument }
Be warned: I am not a Perl guru though
In reply to Re: passing $_ to my function
by moxliukas
in thread passing $_ to my function
by arc_of_descent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |