BEGIN { # get list of modules my @mods = glob("/home/cuberat/mods/*"); for( @mods ) { s/\.pm$//i; #strip .pm from end of file eval "use $_"; #use the module!\ } }
In reply to Re: Load all modules in directory
by pginmd
in thread Load all modules in directory
by ttcuberat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |