in reply to Subclassing Math::BigInt while keeping the import options
If your child class calls the base class's import, the base class will export to your package. If you can, use something like
sub import { ... do something ... goto &Base::Class::import; # Hide us from caller(). }
If you can't, hope that the base class uses Exporter, and use its export_to_level function instead of import.
|
|---|