laziness, impatience, and hubris | |
PerlMonks |
Re: question about || operator and list contextby converter (Priest) |
on Jun 22, 2003 at 03:32 UTC ( [id://267908]=note: print w/replies, xml ) | Need Help?? |
Just because I find the subject of lists and the comma operator interesting (and I'm trying to avoid real work for a few minutes): Compare the outputs of the following assignment expressions:
It appears to me that in the second case the comma is acting as a scalar comma expression and not a list. Granted, || is a binary, not a unary operator, but I find the following description of context supplied in comma expressions interesting:
Example: conv
In Section
Seekers of Perl Wisdom
|
|