in reply to passing $_ to my function
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: passing $_ to my function
by davorg (Chancellor) on Sep 30, 2002 at 12:15 UTC |
In Section
Seekers of Perl Wisdom