3 ms·
$_ isn't really global though: perl -e 'for (1,2,3,4) { for (5,6) { print " $_\n" } print "$_\n" }'
by __david__ 11y ago
$_ isn't really global though:
perl -e 'for (1,2,3,4) { for (5,6) { print " $_\n" } print "$_\n" }'
- Mithaldu 11y agoIt may look like it is not in loop constructs, but it is. `for` and friends just apply `local` scoping to `$_` internally.