in reply to Re: using strict and a config file
in thread using strict and a config file

I got my config file to work -- Thanks! I have a question concerning modules. If I where to create a module config file would it be possible to save it (and make it work) in the same directory that contains the main perl script or in my user directory -- such as: home/users/username From what I have read is seems like the best places are in paths like /usr/lib/perl5/ or /usr/local/apache/perl-lib/ but I may not be able to place them in these locations thanks...

Replies are listed 'Best First'.
Re: Re: Re: using strict and a config file
by busunsl (Vicar) on Nov 12, 2001 at 14:00 UTC
    Yes it is possible. All you have to do is
    use lib '.';

    at the beginning of your program.

    This will make Perl look for modules in the current directory too.