Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: Golf Challenge: FizzBuzz

by merlyn (Sage)
on Mar 02, 2007 at 20:18 UTC ( #602951=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        while (length($num) > 1) {
            my $sum = 0;
            map { $sum += $_ } split '', $num;
            $num = $sum;
        }
    
  2. or download this
    1 while $num =~ s/(\d)(\d)/$1 + $2/e;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2019-12-09 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?