in reply to edit a module?

Why guess?

What happened when you added the function to the module?

If you want to export the function from the module, add it to @EXPORT_OK or @EXPORT, see Exporter. If the module in question uses some other mechanism than Exporter, consult the relevant documentation.

Replies are listed 'Best First'.
Re^2: edit a module?
by kosta (Sexton) on Jan 10, 2011 at 16:16 UTC
    I searched for @EXPORT and @EXPORT arrays but they are not present in the module.... I am wondering if this is possible since I only got the *.pm files not the other ones required to build the module
    Well of course I tried not guessed.... it says that the function is not defined.

      Please reduce your code to the smallest self-contained code that still reproduces your problem. The main program and the "changed" module should each not be above 20 lines.

      Also tell us how things fail for you, as that helps us see how you are trying to call the new function.