Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: asterisk pattern

by davido (Archbishop)
on Oct 27, 2011 at 11:12 UTC ( #934112=note: print w/ replies, xml ) Need Help??


in reply to asterisk pattern

Would your teacher accept this?

perl -E 'say for ("  *", " **", "***" )[0,1,2,1,0]'

(Probably not, but it might be worth the 'F' just to see the look on your teacher's face.)


Dave


Comment on Re: asterisk pattern
Download Code
Replies are listed 'Best First'.
Re^2: asterisk pattern
by afoken (Prior) on Oct 27, 2011 at 12:47 UTC
    but it might be worth the 'F' just to see the look on your teacher's face

    Obligatory link: Niels Bohr and the barometer (not true, unfortunately.)

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2015-08-02 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (16 votes), past polls