Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: using strict and a config file

by lex2001 (Sexton)
on Nov 12, 2001 at 13:56 UTC ( [id://124786]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://124786]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found