Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: If you believe in Lists in Scalar Context, Clap your Hands

by merlyn (Sage)
on Oct 24, 2008 at 21:59 UTC ( #719441=note: print w/ replies, xml ) Need Help??


in reply to If you believe in Lists in Scalar Context, Clap your Hands

The problem here I think is that people are confusing two concepts. The syntax of values separated by commas is called a list. But so is the value in memory consisting of many other scaler values. When I say you cannot have a list in a scalar context, I mean a list value. However, when most people say list and think of the things separated by commas, of course that is also a list to them. However, at no point is that list ever actually a list value. So before you argue this to death, please be clear in your terminology. The representation of the list as values separated by commas could indeed be in a scaler context, but this would never ever be an actual list value at any time during the execution. With that in mind, the answer is that no there never is a list of value in a scalar context: it is an impossibility.


Comment on Re: If you believe in Lists in Scalar Context, Clap your Hands

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2015-07-04 10:20 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 (59 votes), past polls