Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: List context or not?

by baku (Scribe)
on Mar 13, 2001 at 00:37 UTC ( #63946=note: print w/ replies, xml ) Need Help??


in reply to List context or not?

the value returned by foo is evaluated in an array context

Actually, the = (assignment operator) imposes the context of the 'lvalue' onto the 'rvalue.' That means that since the left side of the = is a scalar ($bar), the right side is evaluated in a scalar context.


Comment on Re: List context or not?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-07-07 09:54 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 (88 votes), past polls