&& is not an lvalue



It seems like almost everything in Perl is an lvalue. So why isn't the
result of && an lvalue?

I wanted to do this:
($h{$big}{$nasty}[$dereferencing]{operation($x)}{$done}[here(y)]and die)=6;


Obviously, that just isn't the way perl was implemented. But is there a
reason that "?:" yields an lvalue but && doesn't?

Thanks,

Xho

--
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.
.



Relevant Pages

  • Re: && is not an lvalue
    ... result of && an lvalue? ... that just isn't the way perl was implemented. ... when you consider the short-circuiting. ... that you have, that it actually is an l-value, just an l-value which ...
    (comp.lang.perl.misc)
  • Re: && is not an lvalue
    ... result of && an lvalue? ... that just isn't the way perl was implemented. ... course, since one of them is 'die' and can never be returned, but perl ... the second operand, ...
    (comp.lang.perl.misc)
  • Re: FAQ 7.7 : bug ?
    ... int main{ ... which *does* produce an lvalue. ... The FAQ question says, in essence, "you can do this in Perl but not C", where ... Web Hosting by West Virginians, ...
    (comp.lang.perl.misc)
  • Re: "Cant return a temporary from lvalue subroutine..."
    ... >> distinction appear at Perl level. ... a patch that would allow perl to assign plain GLOBs to tied scalars ... The problem with tying and lvalue functions is that both require to ... In this case the check of temporarity ...
    (comp.lang.perl.misc)
  • Re: foreach loop problem
    ... I am not getting this error with earlier versions of Perl. ... > # If any element of LIST is an lvalue, you can modify it by ... > to variables holding those values. ...
    (comp.lang.perl.misc)