in reply to How to create a reusable routine ?
I think Exporter will do the trick for me. Since I am new to perl, please ignore my little ignorance, I am bit confused regarding where should I place my authenticate.pm (intented name of the package!) Ideally I'd like to keep it under cgi-bin/lib dir, no prob in that but where I am stuck is how do I call this routine from other directories under cgi-bin? So to give an example, if I am writing another script under cgi-bin/monthSale/mSale.pm and want to call authenticate.pm in mSale.pm, how do I do this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to create a reusable routine ?
by snowcrash (Friar) on Apr 02, 2004 at 14:06 UTC | |
|
Re: Re: How to create a reusable routine ?
by bronto (Priest) on Apr 02, 2004 at 13:55 UTC |