Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Pi golf:

by truedfx (Monk)
on Sep 07, 2006 at 13:13 UTC ( [id://571682]=note: print w/replies, xml ) Need Help??


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$..$/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-24 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found