libsub-uplevel-perl/t/lib/Foo.pm

9 lines
148 B
Perl
Raw Permalink Normal View History

2022-09-01 15:35:57 +08:00
package Foo;
# Hook::LexWrap does this, Sub::Uplevel appears to interfere.
sub import { *{caller()."::fooble"} = \&fooble }
sub fooble { 42 }
1;