Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: How to create a reusable routine ?

by snowcrash (Friar)
on Apr 02, 2004 at 14:06 UTC ( [id://341975]=note: print w/replies, xml ) Need Help??


in reply to Re: How to create a reusable routine ?
in thread How to create a reusable routine ?

There's a special variable called @INC, it contains the paths in which perl looks for modules when you use one.
An easy way to add directiories to @INC is the lib module.
Just put these lines into the module/script that needs to call subroutines in authenticate.pm.
use lib '/path/to/your/module_dir'; # can be relative, too use authenticate.pm;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-23 21:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found