Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Golf Challenge: FizzBuzz

by BrowserUk (Patriarch)
on Mar 02, 2007 at 17:07 UTC ( [id://602906]=note: print w/replies, xml ) Need Help??


in reply to Golf Challenge: FizzBuzz

63

sub fizzBuzz { #23456789 123456789 123456789 123456789 123456789 123456789 123 map{$_=$_%15?$_%5?$_%3?$_:'fizz':'buzz':'fizzbuzz',print}1..100 }

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-28 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found