in reply to Adding numbers
Golf!
sub add($$){ my($a,$b,$s)=@_; s/^/0 x(length($a^$b)-length)/efor$a,$b; $s.=0,map$s++,1..$_+$&*$b=~//for$a=~/./g; $s }
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Adding numbers
by innominate (Beadle) on Aug 31, 2002 at 23:59 UTC |