in reply to Multiple Path in use lib
The documentation for the lib pragma says this:
use lib LIST;
and this:
The parameters to use lib are added to the start of the perl search path.
(Note the plural "parameters")
From that we can assume that we can pass a list of directories to use lib and it will do what we expect.
use lib qw(/path/to/one/library /path/to/another);
Of course, multiple calls to use lib work too.
use lib '/path/to/one/library'; use lib '/path/to/another';
It's always well worth checking the documentation for answers to questions like this.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|