in reply to help me with errors in perl module.
Not the only problem, but one obvious problem is this:
our @EXPORT_OK(myFunction); sub MyFunction {
Actually, that's two problems. First, it should be our @EXPORT_OK = qw( myFunction ); # For example. Second, Perl identifiers are "case sensitive", so "myFunction" doesn't refer to the same entity as "MyFunction".
Further down in your code, you also use Mypackage, but you created the package with the name "Mymodule".
These sorts of details will haunt you throughout your programming career until you either pay attention to them or abandon the pursuit in favor of a more lenient endeavor.
Those may not be the only problems. I just stopped reading the code after spotting so many problems with inconsistently named identifiers.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: help me with errors in perl module.
by veerubiji (Sexton) on Oct 13, 2011 at 09:06 UTC |