Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: How can i do one liner import multiple custom .pm files in my perl script

by Anonymous Monk
on Apr 10, 2012 at 08:52 UTC ( #964287=note: print w/ replies, xml ) Need Help??


in reply to Re: How can i do one liner import multiple custom .pm files in my perl script
in thread How can i do one liner import multiple custom .pm files in my perl script

hey actually i have separate package for single subroutine. I want each subroutine in separate file. So Is there any way that i can keep my each subroutine in separate file. So that i can use all of them in my perl script. ?????


Comment on Re^2: How can i do one liner import multiple custom .pm files in my perl script
Re^3: How can i do one liner import multiple custom .pm files in my perl script
by MidLifeXis (Prior) on Apr 10, 2012 at 12:39 UTC

    I don't know if I would choose to do it this way, but perhaps Module::Pluggable would help to do what you want. You should be able to set a class prefix on each module to be loaded.

    Update: Ugh - didn't notice that it was in the list provided below.

    --MidLifeXis

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2014-04-16 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (418 votes), past polls