Re:Why does OpenBSD still include Perl in its base installat...
by tzs on Saturday May 30, 2020 @09:01PM
(#23366284)
> I'd be inclined to have `for my $n (1..100)`
I actually had that at first...
> I might even skip the `== 0` but just saying `(! $n % 15)`
...and that too. I changed them to be more likely to be obvious to even someone who has never seen Perl before. A lot of languages besides Perl have a "for" loop variant that is like a C "for" loop.
The formatting was indeed because it was in a comment box. I didn't want to take up too much vertical space on the page.
I also wouldn't keep all the blocks on the same line, but it can be forgiven in a comment box.