Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Module mechanics question

by yitzchak (Sexton)
on Aug 12, 2011 at 18:17 UTC ( #920060=note: print w/ replies, xml ) Need Help??


in reply to Module mechanics question

Like so:

package bar; use parent 'Modern::Perl'; # rest of bar stuff 1;
If you need to use import for something else in bar.pm, you'd need:
package bar; use Modern::Perl; sub import { ... goto &Modern::Perl::import; }
(Or you could just copy Modern::Perl's source as bar.pm and add to it...)


Comment on Re: Module mechanics question
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-09-16 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (155 votes), past polls