Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Subclassing Math::BigInt while keeping the import options

by ikegami (Pope)
on Oct 09, 2011 at 19:10 UTC ( #930485=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Subclassing Math::BigInt while keeping the import options
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (17)
As of 2015-07-30 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (272 votes), past polls