This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
First stab at lexical scalar aliases
authorFather Chrysostomos <sprout@cpan.org>
Sat, 20 Sep 2014 21:49:04 +0000 (14:49 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 11 Oct 2014 04:54:05 +0000 (21:54 -0700)
commit4fec880468dad87517895b935b19a8d51e98b5a6
tree3f154e38897ec820739ddb30a3b57e99a893eff4
parentc0d680ed1b5f1cf4e78338bc96d26e636cbc60d6
First stab at lexical scalar aliases

No \my$x= yet.  Only my $x; \$x =....

It does not work properly with variables closed over from outside;
hence, all the to-do tests fail still, since they do the assign-
ment in evals.

But this much works:

$ ./miniperl -Ilib -Mfeature=:all -e 'my $m; \$m = \$n; warn \$m; warn \$n'
Lvalue references are experimental at -e line 1.
SCALAR(0x7fa04b805510) at -e line 1.
SCALAR(0x7fa04b805510) at -e line 1.
embed.fnc
embed.h
op.c
opcode.h
pp.c
proto.h
regen/opcodes
scope.c