in reply to Re: Can I tell a sub to take $_ instead of @_ (like some builtins do)
in thread Can I tell a sub to take $_ instead of @_ (like some builtins do)
my $parm = $_[0] || $_;
What is you call this?
test(0);
test("");
You should wait for Perl 6 and use the new
operator //.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re x 2: Can I tell a sub to take $_ instead of @_ (like some builtins do)
by BrowserUk (Patriarch) on Aug 23, 2002 at 05:58 UTC |