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

Re: asterisk pattern

by GrandFather (Sage)
on Oct 27, 2011 at 11:03 UTC ( #934108=note: print w/replies, xml ) Need Help??


in reply to asterisk pattern

Oh! I see from the CB that you want to use a for loop:

print ' ' x (abs(2 - $_)), '*' x (3 - abs(2 - $_)), "\n" for 0 .. 4;
True laziness is hard work

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://934108]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2017-07-26 15:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (398 votes). Check out past polls.