FizzBuzz in Perl

perl -E 'say$_%15?$_%3?$_%5?$_:Buzz:Fizz:Fizzbuzz for 1..100'
Just another FizzBuzz in Perl.
Sample Output
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
Fizzbuzz

3
By: MarxBro
2012-11-18 05:47:29

2 Alternatives + Submit Alt

What Others Think

The presentation of less amazing subjects has on a central level diminished our accommodating standards and the assessment of business undertaking. Website https://topwritingservices.net/superiorpapers-com-review/ is helpful in research paper. I think the noticeable days of our informative framework are past at this point.
tinakutch · 51 weeks and 2 days ago
Columbus is Ohio’s state capital. The city’s Scioto Mile is a string of parks on both sides of the Scioto River, with a huge interactive fountain and trails. On the west bank, the COSI science center offers hands-on exhibits and a planetarium. MaxRemind Inc top rank medical billing company of USA offers medical billing services in Columbus, Oh, medical credentialing services along with home health agency software for home healthcare companies companies in Columbus, Oh USA.
stevematt · 33 weeks and 3 days ago
I handle that IE Spaces for Creativity for singing individuals like me who love doing new things. One hire this http://www.pronounchecker.com/5-reasons-to-do-pronoun-review/ to do work at time. I will attempt my chance by investigating their ruler program.
Ahmed74 · 22 weeks ago
??The two gatekeepers and educators should attempt their best for making the learning experience of the understudies additionally convincing and faltering. Students can visit http://www.apostrophechecker.com/your-english-apostrophe-checker-online/ for more writing skills. Understudies should be given out as a lot of an understood to expand their curiousity level.??
Ahmed74 · 22 weeks ago
Plainly, the productivity and abundancy of the web masterminding structure can't be disregarded. Visit homepage for more details. There are inestimable understudies who are getting a charge out of edifying central amasses generally seeing this new development.
Ahmed74 · 22 weeks ago
I'm one several people who won that enlightening battle so with no issue. Visit PassiveVoiceChecker.com to correct grammar mistakes. Winning this opposition was seeking after for me.
tinakutch · 17 weeks ago
I everything considered need to see the returning of old Dweezil Zappa back in the field once more. Visit PassiveVoiceCorrector.com for getting wonderful info. We are feeling the lack of your melodic shows to such an extent.
tinakutch · 17 weeks ago
One of the top digital marketing company in new york. We offer our digital marketing services nationwide and have successfully completed many projects.
leahjenny · 1 week and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: