BluePerl has asked for the wisdom of the Perl Monks concerning the following question:
Maybe a simple Question: I use a dozen of scripts. Each of them uses a pile of the same uses. How can I achive to have just one file with all the uses which I can import? Here an Example
The main code goes here:# obligigatory.pm # all my uses, which I needed in the other files # no package marker use strict; use warnings; use foo::bar; 1;
use obligatory; # use all the staff I needed $a = $b; # should give me an error/warning
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to use a bunch of uses with just one use?
by Athanasius (Archbishop) on Aug 07, 2015 at 07:53 UTC | |
by BluePerl (Acolyte) on Aug 07, 2015 at 08:04 UTC | |
|
Re: How to use a bunch of uses with just one use?
by Corion (Patriarch) on Aug 07, 2015 at 06:19 UTC | |
by shmem (Chancellor) on Aug 07, 2015 at 12:05 UTC | |
by BluePerl (Acolyte) on Aug 07, 2015 at 06:55 UTC | |
|
Re: How to use a bunch of uses with just one use?
by shmem (Chancellor) on Aug 07, 2015 at 12:50 UTC | |
|
Re: How to use a bunch of uses with just one use?
by soonix (Chancellor) on Aug 07, 2015 at 10:45 UTC |