>>>>> "R" == RedGrittyBrick <> writes:
R> Franken Sense wrote:
>>
>> 100) A comma operator does not yield an lvalue.
>>
>> Is this also true in perl?
C> perl -e "$x,$y = 42; print qq(x=$x, y=$y)"
R> x=, y=42
there is no lvalue in that first statement. comma binds lower than = so
that was $x followed by $y = 42 which works. the problem is finding a
way to have a comma operator which binds tighter than =. using parens
won't work since that makes a list and it isn't a comma op anymore but a
list element separator.
and finally WTF is franken sense asking dumb sidebar questions and
getting answers. he needs to focus on learning perl and not obscure side
issues like comma ops and lvalues (i bet he doesn't even know what the term
lvalue means)
uri
--
Uri Guttman ------
--------
http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Free Perl Training ---
http://perlhunter.com/college.html ---------
--------- Gourmet Hot Cocoa Mix ----
http://bestfriendscocoa.com ---------