This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Handle cow $_ in @INC filter
authorFather Chrysostomos <sprout@cpan.org>
Sat, 13 Oct 2012 05:29:04 +0000 (22:29 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 13 Oct 2012 05:55:59 +0000 (22:55 -0700)
commitb68108d9b5245170bc0844ad4bded511ab7cca6a
tree59ffc79698edbd5a3e2f7b4046bac3529488c472
parent2203fb5a8b3178b6188538e4c811106ceb721132
Handle cow $_ in @INC filter

Setting $_ to a copy-on-write scalar in an @INC filter causes the
parser to modify every other scalar sharing the same string buffer.
It needs to be forced to a regular scalar before the parser sees it.
pp_ctl.c
t/op/incfilter.t