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

Re: `Final' lvsub patch: arrays and hashes

Thread Previous
From:
perl5-porters
Date:
January 7, 2001 16:18
Subject:
Re: `Final' lvsub patch: arrays and hashes
Message ID:
93b112$qi3$1@post.home.lunix
In article <20010107211513.C12732@pobox.com>,
	Graham Barr <gbarr@pobox.com> writes:
> That is not completely true.
> 
>   sub abc { return \shift }
> 
>   $a = 1;
>   $b = abc($a);
>   warn $$b;
>   ${$b}++;
>   warn $a;
> 
> Graham.

Interesting. You just convinced me to Simon's point of view. lvalue should
work for shift :-)

Thread Previous


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