That's an odd one. I've reduced your example to a single file test case...
use strict; use warnings FATAL => qw(all); use Test::More tests => 1; BEGIN { package Wah; $INC{'Wah.pm'} = __FILE__; sub import { my $caller = caller; ::is($caller, "Foo"); } } BEGIN { *main::Foo:: } package Foo; use Wah;
In reply to Re: Strange side effect on 'caller' function result
by tobyink
in thread Strange side effect on 'caller' function result
by ainkov
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |