Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: How to best pass on the context / wantarray?

by saberworks (Curate)
on Mar 27, 2006 at 18:41 UTC ( #539500=note: print w/ replies, xml ) Need Help??


in reply to Re: How to best pass on the context / wantarray?
in thread How to best pass on the context / wantarray?

Thank you. I was wondering after reading the original post why he was using the context (list or scalar) to determine whether to operate on a copy or the original. What does "a copy or the original" have to do with "list or scalar context" in general? Nothing! If you want to operate on a copy, grab a copy and operate on it.

Although, I might be misunderstanding what is going on.


Comment on Re^2: How to best pass on the context / wantarray?
Re^3: How to best pass on the context / wantarray?
by Anonymous Monk on Mar 28, 2006 at 05:25 UTC
    The difference was between void or non-void context, not between list or scalar.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2015-07-02 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls