in reply to Re^2: Creating a pseudo-module/package on a remote (CGI) server?
in thread Creating a pseudo-module/package on a remote (CGI) server?
the man says:
Sayingis almost the same as sayinguse lib LIST;For each directory in LIST (called $dir here) the lib module also checks to see if a directory called $dir/$archname/auto exists. If so the $dir/$archname directory is assumed to be a corresponding architecture specific directory and is added to @INC in front of $dir.BEGIN { unshift(@INC, LIST) }
...in other words use lib is far cleaner, and does a bundle more bookkeeping, for you ... (also, it does it in a BEGIN - which you may forget should should you manipulate @INC directly
sorry of the <code>'s are in silly places...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Creating a pseudo-module/package on a remote (CGI) server?
by PockMonk (Beadle) on Dec 21, 2006 at 11:27 UTC |