Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Programming Contest (High School '87)

by Kanji (Parson)
on May 12, 2001 at 03:31 UTC ( [id://79872]=note: print w/replies, xml ) Need Help??


in reply to Programming Contest (High School '87)

I can get it down to 41 by juggling your code around and making use of the -l switch ... or 43 if you count the -l. :)

print$"x(3-$_),"*"x($_*2+1)for 0..3,2,1,0

    --k.


Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2025-03-27 17:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (70 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.