in reply to How to call Module
edit:ah yes... I would pass the sub names as bareword into the @EXPORT array.
edit2: tilly's right. it should be in @EXPORT_OK, otherwise you risk namespace collision, and as tilly said you have no idea where the sub originated from in your main program, unless you do explicit importing of sub names when you use your module
What does your client look like? You must import the function names via
Also you may need to putuse Config::Confmanager qw{Encrypt Decrypt};
in your module code.require Exporter; our @ISA = ("Exporter");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to call Module
by Anonymous Monk on Aug 24, 2004 at 17:11 UTC |