This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Handle magical return values from @INC filter
authorFather Chrysostomos <sprout@cpan.org>
Fri, 9 Aug 2013 20:32:30 +0000 (13:32 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 11 Aug 2013 14:50:22 +0000 (07:50 -0700)
commit2e8409ad08dc8f8f81c8bdba02f7423a301ff4e0
treef9e7a7af209173adad92871cd8803dd192d3be73
parent00752fe19253197bdc8525118d2757f895d207e7
Handle magical return values from @INC filter

An @INC filter (a subroutined returned by a subroutine in @INC) could
be an lvalue sub that returns a magical scalar for the status.  We
need to account for that.

If we don’t call get-magic (FETCH), we’ll get the last value assigned
to or returned from that scalar.
pp_ctl.c
t/op/incfilter.t