http://www.perlmonks.org?node_id=964287


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