in reply to Re^2: Pi golf:
in thread Pi golf:

Actually, map doesn't save any space (nor does it cost any):
$s+=6/$_**2for 1..1e6;die$s**.5 map$s+=6/$_**2,1..1e6;die$s**.5

Replies are listed 'Best First'.
Re^4: Pi golf:
by liverpole (Monsignor) on Sep 07, 2006 at 14:23 UTC
    You're right... good observation.

    I still think it looks better, though, because it lets you omit the space after the for, even though that gets replaced with the ','.


    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/