En op 16 mei 2002 sprak Ryan Russell:
> > > Hang on... can't that be changed to:
> > >
> > >   $m=pop;$n+=$m%$_?0:$_ for 1..$m-1;print$n
> > >
> > > you might be able to get rid of the space between "for 1".
> 
> No, needs the sapce.

Nope. Of course, you can't just delete it, but spaces around a "for" can
often be removed by using "map":

$m=pop;map$n+=$m%$_?0:$_,1..$m-1;print$n

And 

map$n+=$m%$_?0:$_,1..($m=pop)-1;print$n

is one shorter still.

Of course, I'm not going to spend any more time on this. No, really. No
more golf for me this month.

Eugene

-- 
The uglier a man's legs are, the better he plays golf---it's almost a
law. -- H. G. Wells

Reply via email to