Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Golf Challenge: FizzBuzz

by BrowserUk (Pope)
on Mar 02, 2007 at 17:07 UTC ( #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.


Comment on Re: Golf Challenge: FizzBuzz
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (17)
As of 2015-07-31 13:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls