2 ms·
I thought that the point of $_ was that you don't reference it directly in your code?
by arethuza 11y ago
I thought that the point of $_ was that you don't reference it directly in your code?
- Mithaldu 11y agoIt is! But sometimes you end up using it to make code more reliable, as in: do_thing($_) for @things; Where $_ is passed in as an argument, as opposed to: do_thing for @things; Where $_ is (due to its global nature) set by `for`, and read in sub do_thing { ... }