How can I do one liner import multiple custom .pm files in my perl script?

I am new for Perl I want to ask one question. I have around 50 custom packages which i am using in my Perl script. I want to import all .pm packages in my Perl script in an easy way. Right now i have to import each package individually. So Is there any way to do so??

Right Now i am doing like:

use pack1;
use pack2;
...... 
use pack50;

But I want some easy way Like

use Pack*;

This is just an example from my way but you can give me any solution.

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

Hi Navrattan Bansa,

Two suggestions,

First: There are some modules that import many others, like LWP, HTML::TreeBuilder or Mojolicious. Take a look to that point, perhaps you are importing twice some of them.

Second: You can add them to a second file, like 'modules.pl' and execute it from your script like do 'modules.pl'