in reply to Re: Christmas Tree
in thread Christmas Tree

printf"%22s%s\n",$_%=21,$_=4**$_,y/0/"/cfor 1..22

Happy New Year! :)

Replies are listed 'Best First'.
Re^3: Christmas Tree
by LanX (Saint) on Jan 11, 2009 at 17:55 UTC
    Thanx, and a happy new year for you too! 8 )

    I have to admit I was confused by your example, it's important to understand that printf takes his parameters by reference and not by value!

    So it's possible to still influence $_ in the last parameter with effect for the first!

    Very insightful, thanx a lot!

    Cheers Rolf

      Well, it's a bit complicated, but yes, all perl functions take parameters by reference.