Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^4: Golf Challenge: FizzBuzz

by w-ber (Hermit)
on Mar 02, 2007 at 20:37 UTC ( #602956=note: print w/ replies, xml ) Need Help??

in reply to Re^3: Golf Challenge: FizzBuzz
in thread Golf Challenge: FizzBuzz

Unfortunately, the last several entries are all missing newlines, which makes the output very hard to read.

Indeed, but there is an easy fix: $\="\n";. This does add eight characters, though.

Solving the problem without modulo seems fun. If this were Perl 6 or Haskell, one could do it with filtered streams. How about table-driven programming?

print "Just Another Perl Adept\n";

Comment on Re^4: Golf Challenge: FizzBuzz
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://602956]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-11-29 04:15 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls