2 ms·
He just couldn't imagine a proper language like Perl where you didn't even NEED a loop variable... foreach (@lines) { next if /^$/; ...
by m463 6y ago
He just couldn't imagine a proper language like Perl where you didn't even NEED a loop variable...
foreach (@lines) {
next if /^$/;
...
- hnick 6y agoYou can even change the foreach to for if you seek more brevity in your Perl life (don't we all?).