Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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

Replies are listed 'Best First'.
Re^3: How can i do one liner import multiple custom .pm files in my perl script
by MidLifeXis (Monsignor) 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?
[Corion]: Mhrrrr. Some project made changes to a report I ingest. I tell them "the format of the new rows is bad". They change it, without understanding/ knowing what other systems might act on this suffix. While it now works for me, I'm not really happy with ...
[Corion]: ... their approach to changing things and waiting who screams at them.

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2017-07-24 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (354 votes). Check out past polls.