http://www.perlmonks.org?node_id=934112


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

Replies are listed 'Best First'.
Re^2: asterisk pattern
by afoken (Chancellor) 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". ;-)