Jo Christian Oterhals
1 min readMar 28, 2019

--

What’s even cooler is that with Perl 5.10 or later, you can do almost the same, though using the negation of the mod… i.e.

perl -E 'say "Fizz"x!($_%3)."Buzz"x!($_%5)||$_ for 1..20'

Strangely satisfying to see the two perls being this similar.

--

--

Jo Christian Oterhals
Jo Christian Oterhals

Written by Jo Christian Oterhals

Norwegian with many interests. Programming being one of them.

No responses yet