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

Audrey's use looks like a great approach.

With that said, 50 packages seems like a lot. What are you doing that you have so many?


Improve your skills with Modern Perl: the free book.

  • Comment on Re: How can i do one liner import multiple custom .pm files in my perl script

Replies are listed 'Best First'.
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

    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. ?????

      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