News for hackers. Stuff that matters.
Re:Why does OpenBSD still include Perl in its base installat... by eythian on Saturday May 30, 2020 @04:03PM (#23364166)
Even that Perl isn't as tidy as it could be. I'd be inclined to have `for my $n (1..100)`, and use `say` instead of print. I might even skip the `== 0` but just saying `(! $n % 15)`, but I'm on the fence about that.

I also wouldn't keep all the blocks on the same line, but it can be forgiven in a comment box.

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.