This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add intro_my to XS::APItest::lexical_import
authorFather Chrysostomos <sprout@cpan.org>
Mon, 6 Jun 2016 20:40:12 +0000 (13:40 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 6 Jun 2016 20:58:48 +0000 (13:58 -0700)
commit59f30b2e556f0c671940ad7066fa598d49f64cbb
treed7e5ce2bc7e48a05fa9ccb125eeba3eb1c5fb0a6
parente2733f9a9c4a5fa2b3718bce12d67b73111a9bf2
Add intro_my to XS::APItest::lexical_import

so that code thieves will have some correct code to steal.

Without intro_my(), the lexical subs installed in a ‘use’ block will
not be visible to the following statement, but only the one after it.
BEGIN blocks already get intro_my called, so it worked already with a
BEGIN block, but not with ‘use’.
ext/XS-APItest/APItest.xs
ext/XS-APItest/t/lexsub.t