So, did you actually declare the subroutine ReadConfigFile? It does not suffice to say that you will be exporting ReadConfigFile, you also need to write the code into a subroutine and that subroutine must be named ReadConfigFile. For example like the following:
package Hello; sub ReadConfigFile { my ($file) = @_; warn "Reading of config file '$file' is not yet implemented."; };
In reply to Re: Problem with functions in modules
by Corion
in thread Problem with functions in modules
by nisha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |