in reply to Re^2: a rule of thumb for $_ in Perl
in thread a rule of thumb for $_ in Perl
Actually, you need to remember only those few functions that put information in $_ (like map, grep, foreach, commandline -n etc); not those lots of functions that _optionally_ default on $_ (like print, split, m//, sin, unlink) because for these you can just always use these with an explicit argument.
|
|---|