Michal -- ...and then Michal Simovic said... % % I'd like to ask how to tell perl script to use % cgi-lib.pl and where cgi-lib.pl should be placed.
1) I agree with Connie; you're probably using really old code. 2) To use a module, just use modulename ; and away you go. 3) To use code from another file that isn't a module (not that I'm recommennding that, and watch for drieux to chime in here on why you shouldn't and how easy it is to not :-) require it instead, IIRC: require somefilename.pl ; 4) If the module is in a directory in your @INC array then you don't have to do anything to tell perl where it is. If it isn't, you could set PERLLIB="/path/to/dir-containing-module" or PERL5LIB="/path/to/dir-containing-module" in your shell or use lib ( /path/to/dir-containing-module ) ; in your script code to add that directory to @INC, or you could just use /path/to/modulename ; and explicitly point to the module, each of which has its own pros and cons. 5) If you're installing the module, perl will probably put it in a right place for you. If you're installing the non-modular file, put it in a directory in your @INC to find it effortlessly or anywhere you want to make yourself use the tricks in 4) above. HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg05963/pgp00000.pgp
Description: PGP signature