develooper Front page | perl.perl5.porters | Postings from August 2001

lvalue method calling still broken

Thread Next
Robin Houston
August 14, 2001 07:37
lvalue method calling still broken
Message ID:
This is just a heads-up. I know that some people are already aware of

[robin@robin perl@11660]$ DYLD_LIBRARY_PATH=. ./perl -e 'foo()->$bar = 1'
panic: unexpected optree near method call at -e line 1, at EOF

In fact, lvalue sub calls in general are pretty broken in bleadperl
at the moment, in the sense that returned lvalues don't work if you
use an explicit return statement:

[robin@robin perl@11660]$ DYLD_LIBRARY_PATH=. ./perl -l
sub x :lvalue {$x}
sub X :lvalue {return $x}
x()=12; print X();
X()=34; print x();


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About