Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 scrutinizing the Monastery: (9)
As of 2014-11-23 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (129 votes), past polls