Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: (Golf) Decorating the Christmas Tree

by jmcnamara (Monsignor)
on Dec 04, 2001 at 13:37 UTC ( [id://129293]=note: print w/replies, xml ) Need Help??


in reply to (Golf) Decorating the Christmas Tree


129 characters.
sub tree { ($h,$f,$s)=@_; split//,'0@*+'x(10*$f).'='x(40*(1-$f)); for(0..$h-1){ $s.=$/.$"x($h-$_); $s.=$_[rand@_]for+0..2*$_ } $s=~s/\S/*/; print$s }

--
John.

Log In?
Username:
Password:

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

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

    No recent polls found