user-pic

curtis

Subscribe to feed Recent Actions from curtis

  • Toby Inkster commented on [FB]izzBuzz in Perl

    I was trying something different here. Didn't work out as concise as I'd hoped, but it's pretty cute...

    say+(Fizz,Buzz,FizzBuzz,$_)[substr+233031033013033,$_%15,1]for 1..100;
    

    Along similar lines; a little shorter...

    say+($_,Fizz,Buzz,FizzBuzz)[!($_%3)+2*!($_%5)]for 1..100;
    
  • Michał Wojciechowski commented on [FB]izzBuzz in Perl

    I'm late to the party, but here's my version, using a slightly different approach:

    say+(Fizz)[++$_%3].Buzz x/.?[50]$/||$_ until$`

Subscribe to feed Responses to Comments from curtis

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.