in reply to Export function from module
The first line of HELPER.pm says: package Helper.
The 5th line of test.pl is use HELPER;
Though your filesystem may or may not be case-sensitive, package names are identifiers, and Perl's identifiers are case sensitive. You should be consistent in your use of case. I recommend naming the module Helper.pm, the package, Helper, and then "use Helper;". But if you prefer all caps, make sure your package name is all caps too.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Export function from module
by Anonymous Monk on Apr 30, 2013 at 03:39 UTC | |
by davido (Cardinal) on Apr 30, 2013 at 04:43 UTC | |
by 2teez (Vicar) on Apr 30, 2013 at 04:56 UTC |