Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
XP is just a number
 
PerlMonks  

Re: (Golf) Patriotic Golf

by patgas (Friar)
on Sep 17, 2001 at 21:15 UTC ( [id://112968]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to (Golf) Patriotic Golf

Well, I was in the running there for a little while, but it looks like the really elegant solutions are coming out now, and I got left in the dust... But I worked on this all afternoon, so I'll contribute it anyway.

I have it at 78 characters.

sub f{ for((5)x3,0){print'*',' *'x5,'='x15,"\n ",'* 'x$_,"\n"}print+('='x26," +$/$/")x3 }

Update: For those curious, here's another angle I was working on, at 81 characters:

sub f { for(1..7){($d=$d?'':'='x15)&&print'*';print' *'x5,"$d\n"}print+($/.('= +'x26).$/)x3 }

"We're experiencing some Godzilla-related turbulence..."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://112968]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.