aboutsummaryrefslogtreecommitdiff
path: root/challenge-001/nick-logan/perl5/ch-2.pl
blob: 00372d5c386915469d65cae481c83ee7a005134d (plain)
1
2
3
# WARNING: this polyglot breaks best practices of both Perl 5 and Perl 6 in order to run on both

print((join( "", (!($_ % 3) and "Fizz" or ""), (!($_ % 5) and "Buzz" or "") ) or $_), "\n") for 1..20;