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

use Config::Confmanager qw{Encrypt Decrypt};
Also you may need to put
require Exporter; our @ISA = ("Exporter");
in your module code.


Grygonos

Replies are listed 'Best First'.
Re^2: How to call Module
by Anonymous Monk on Aug 24, 2004 at 17:11 UTC
    Hi all,
    Thanks a lot for your help.
    I made the above said changes in the module. But i am not able to call the function from module to my main program.
    Can you pls help me to solve.
    Thanks & Regards