Well, I assume that you are calling your script mSale.pl, and not .pm. First of all, I strongly descourage you to put your libraries in any place where a web user can get. Said that, suppose you are putting your authenticate.pm in /usr/lib/cgi. Then you'll want to start your script with something such:
#!/usr/bin/perl use strict ; # ...and... use warnings ; # always! # let your cgi find authenticate.pm in /usr/lib/cgi... use lib '/usr/lib/cgi' ; # ...and you are safe ;-) use authenticate.pm # your CGI goes here :-)
I hope this helps
Ciao!
--bronto
The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
--John M. Dlugosz
In reply to Re: Re: How to create a reusable routine ?
by bronto
in thread How to create a reusable routine ?
by bar10der
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |