Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 pondering the Monastery: (18)
As of 2015-07-30 13:33 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 (271 votes), past polls