also works with one fewer characters.#2345678901234567890123456789012345678901234567 warn+(Fizz)[$_%3].(Buzz)[$_%5]||$_,$/for 1..100
But this isn't really golf since you need to add -M5.01 to the calling statement.#2345678901234567890123456789012345678901234 perl -M5.01 -e 'say+(Fizz)[$_%3].(Buzz)[$_%5]||$_,for 1..100'
In reply to Re^3: Golf Challenge: FizzBuzz
by tweetiepooh
in thread Golf Challenge: FizzBuzz
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |