##
package bar;
use foo qw(from bar);
1;
####
use lib '.';
use foo qw(from test.pl);
use foo qw(from test.pl again);
use bar;
####
$ perl test.pl
foo's BEGIN
foo's body
foo's import: from test.pl
foo's import: from test.pl again
foo's import: from bar
$