If you need to use import for something else in bar.pm, you'd need:package bar; use parent 'Modern::Perl'; # rest of bar stuff 1;
(Or you could just copy Modern::Perl's source as bar.pm and add to it...)package bar; use Modern::Perl; sub import { ... goto &Modern::Perl::import; }
In reply to Re: Module mechanics question
by yitzchak
in thread Module mechanics question
by Logicus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |