in reply to Re: The FizzBuzz Thing :(
in thread The FizzBuzz Thing :(
DRY? Hmm. I see superfluous variables, print statements in your solution. How about this:
for (1 .. 100) { say "Fizz" x !($_ % 3) . "Buzz" x !($_ % 5) . "Bizz" x /3/ . "Fuzz" x /5/ || $_ }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: The FizzBuzz Thing :(
by choroba (Cardinal) on Dec 25, 2015 at 21:44 UTC |