[ Create a new account ]
I wish I'd never started this FizzBuzz thing now. Anyway, FizzBuzz/Perl in 60 bytes:
print$_%3*$_%5?$_:($_%3?Bu:$_%5?Fi:FizzBu).zz,"\n"for 1..100
Can it be bettered?
55 bytes:
print(($_%3?'':Fizz).($_%5?'':Buzz)||$_,"\n")for 1..100
54 bytes:
print+($_%3?'':Fizz).($_%5?'':Buzz)||$_,"\n"for 1..100
print+(Fizz)[$_%3].(Buzz)[$_%5]||$_,$/for 1..100
Get More Comments
Reply
Better (Score:1)
55 bytes:
D'oh. Don't need those parentheses (Score:1)
54 bytes:
hq9f+ (Score:1)
This was discussed on perlmonks (Score:1)
The shortest solution there (from a quick skim) was 48 characters:
print+(Fizz)[$_%3].(Buzz)[$_%5]||$_,$/for 1..100