diff options
author | Father Chrysostomos <sprout@cpan.org> | 2010-09-28 23:41:43 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-09-29 00:02:41 -0700 |
commit | 4e3a83657baae9e603058d075ecfcec051d04c5a (patch) | |
tree | f2285bb46dbe1c5fa0b86727719887c78d9289e3 /t/op/gv.t | |
parent | 7fdd8d84b57fd74e4b6223233f298d6a853fbaeb (diff) | |
download | perl-4e3a83657baae9e603058d075ecfcec051d04c5a.tar.gz |
Revert "[perl #77928] Glob slot assignment and set-magic"
This reverts commit cffb36981555111f364a511fb5763f65ea748c0e.
Diffstat (limited to 't/op/gv.t')
-rw-r--r-- | t/op/gv.t | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -12,7 +12,7 @@ BEGIN { use warnings; -plan( tests => 220 ); +plan( tests => 219 ); # type coersion on assignment $foo = 'foo'; @@ -783,19 +783,6 @@ EOF }}->($h{k}); } -# [perl #77928] Glob slot assignment and set-magic -{ - package Readonly::Alias; - sub TIESCALAR { bless \(my $x = \pop) } - sub FETCH { $${$_[0]} } - sub STORE { die "Assignment to read-only value" } - package main; - tie my $alias, "Readonly::Alias", my $var; - $var = *bength; - # Now modify a glob slot, not the alias itself: - ok(scalar eval { *$alias = [] }, 'glob slot assignment skips set-magic'); -} - __END__ Perl Rules |