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?
In reply to Re: How to create a reusable routine ?
by bar10der
in thread How to create a reusable routine ?
by bar10der
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |