This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
constant.pm: Make list constants read-only
authorFather Chrysostomos <sprout@cpan.org>
Sun, 30 Jun 2013 06:59:48 +0000 (23:59 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 26 Jul 2013 06:48:01 +0000 (23:48 -0700)
commit15635cbfaf61c4ea7f360fd74037b2f34a1fe3b7
treec79e68bdb846911baa009f98b56df00261134151
parent6f1b3ab07ea077b8191fe508269d778bc64a5f50
constant.pm: Make list constants read-only

Here we take advantage of the array-ref-stash-elem mechanism added in
the previous commit, which causes the actual elements of the stored
array to be pushed on to the stack.
dist/constant/lib/constant.pm
dist/constant/t/constant.t