A slight variation
#! perl -w sub test { my $parm = $_[0] || $_; print $parm, $/; } test( "fred"); test for qw(the quick brown fox); __END__ # Output C:\test>192129 fred the quick brown fox C:\test>
In reply to Re: Can I tell a sub to take $_ instead of @_ (like some builtins do)
by BrowserUk
in thread Can I tell a sub to take $_ instead of @_ (like some builtins do)
by statebelt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |