Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl: the Markov chain saw
 
PerlMonks  

Re: (Golf) Decorating the Christmas Tree

by premchai21 (Curate)
on Dec 03, 2001 at 22:29 UTC ( [id://129232]=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) 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
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.