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:
I tested below. You are right.if( (5,3,0) )
both evaluate to FALSE. I need to understand the definition of list furthur.if( (5,3,0) ) is equal to if( 5,3,0 )
@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.
|
---|
In Section
Seekers of Perl Wisdom