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

Re^2: list assignment to list in scalar context

by Anonymous Monk
on Nov 15, 2012 at 08:50 UTC ( #1003963=note: print w/ replies, xml ) Need Help??


in reply to Re: list assignment to list in scalar context
in thread list assignment to list in scalar context

@TGI: You have said that there is no list at all in:

if( (5,3,0) )
I tested below. You are right.
if( (5,3,0) ) is equal to if( 5,3,0 )
both evaluate to FALSE. I need to understand the definition of list furthur.

@tye and Anonymous Monk : Your comments make sense.

From your patient answers, I think I can draw the conclusion: The reason that list assignment in scalar context will return the number of elements on right side list is for convenience of usage.


Comment on Re^2: list assignment to list in scalar context
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2015-07-06 19:07 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 (81 votes), past polls