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

Re: (Golf) Decorating the Christmas Tree

by premchai21 (Curate)
on Dec 04, 2001 at 03:29 UTC ( [id://129232]=note: print w/replies, xml ) Need Help??


in reply to (Golf) Decorating the Christmas Tree

#!/usr/bin/perl -l ($h, $f) = @ARGV; #234567891234567892234567893234567894234567895 # 0 0 0 0 0 @a=qw<0 @ * +>; for(1..$h){print$"x($h-$_),($j++?map{rand()<$f?$a[ rand@a]:'='}1..($_*2-1):'*'),$"x($h-$_)}

105 code characters, +3 for the option -l, for a total of 108 characters.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found