diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-09-20 14:49:04 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-10-10 21:54:05 -0700 |
commit | 4fec880468dad87517895b935b19a8d51e98b5a6 (patch) | |
tree | 3f154e38897ec820739ddb30a3b57e99a893eff4 /scope.c | |
parent | c0d680ed1b5f1cf4e78338bc96d26e636cbc60d6 (diff) | |
download | perl-4fec880468dad87517895b935b19a8d51e98b5a6.tar.gz |
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.
Diffstat (limited to 'scope.c')
-rw-r--r-- | scope.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1007,8 +1007,6 @@ Perl_leave_scope(pTHX_ I32 base) (SvREFCNT(sv) <= 1 && !SvOBJECT(sv)) ? "clear" : "abandon" )); - assert(SvPADMY(sv)); - /* Can clear pad variable in place? */ if (SvREFCNT(sv) == 1 && !SvOBJECT(sv)) { |