in reply to Re^3: Golf Challenge: FizzBuzz
in thread Golf Challenge: FizzBuzz
Ugh. Void Map. Ugh. How about this instead:while (length($num) > 1) { my $sum = 0; map { $sum += $_ } split '', $num; $num = $sum; }
1 while $num =~ s/(\d)(\d)/$1 + $2/e;
|
---|
In Section
Meditations