in reply to How to add paths in @INC file
For those on Windows, beware that ActiveState Perl 5.005_3 has a bug that causes paths to be chopped at the first space. or if you don't want (or can't) pass parameters you probably want this:Perl -I "root/cgi-bin/csr" myProgram.pl
as a last resort you might try:use 'root/cgi-bin/csr';
The BEGIN block is executed before the rest of the program.BEGIN { push @INC, 'root/cgi-bin/csr' };
Have fun,
Carl Forde
|
|---|