develooper Front page | perl.perl5.porters | Postings from February 2003

length as an lvalue sub

Thread Next
From:
Fergal Daly
Date:
February 10, 2003 18:01
Subject:
length as an lvalue sub
Message ID:
200302110201.18882.fergal@esatclear.ie
Hi,
	any good reason why Perl shouldn't allow

length($a) = 5;

? I was kinda suprised when it didn't work.

I had a quick go at implementing it but I can't even get perl to accept 
length() as an lvalue sub (although miniperl will - why?). It looks like 
it'll take more than my cargo cult effort.

Any chance of seeing this in the next version?

F

-- 
Do you need someone with lots of Unix sysadmin and/or lots of OO software 
development experience? Go on, giz a job.
My CV - http://www.fergaldaly.com/cv.html


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About