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

length as an lvalue sub

Thread Next
Fergal Daly
February 10, 2003 18:01
length as an lvalue sub
Message ID:
	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?


Do you need someone with lots of Unix sysadmin and/or lots of OO software 
development experience? Go on, giz a job.
My CV -

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