- or download this
-----------
package Baz;
use base qw(Foo Bar);
- or download this
BEGIN {
require Foo;
require Bar;
push @ISA, qw(Foo Bar);
}
----------
- or download this
----------
### File A.pm
package A;
...
@ISA = qw(A);
sub import { warn "Z imported"; }
----------
- or download this
bash$ perl -e 'use X'
import X at X.pm line 7.
...
bash$ perl -e 'use Z'
import A at A.pm line 5.
import Z at Z.pm line 9.