Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Christmas Tree

by LanX (Bishop)
on Jan 11, 2009 at 17:55 UTC ( #735533=note: print w/replies, xml ) Need Help??


in reply to Re^2: Christmas Tree
in thread Christmas Tree

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

Replies are listed 'Best First'.
Re^4: Christmas Tree
by mtve (Deacon) on Jan 12, 2009 at 07:26 UTC
    Well, it's a bit complicated, but yes, all perl functions take parameters by reference.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2017-12-18 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (500 votes). Check out past polls.

    Notices?