There's more than one way to do things | |
PerlMonks |
Re: how to create Modulesby Zaxo (Archbishop) |
on May 17, 2005 at 05:15 UTC ( [id://457666]=note: print w/replies, xml ) | Need Help?? |
The Exporter variables @EXPORT and @EXPORT_OK and your exportable $EcoRI should be package globals, so declare them with our or use vars rather than my. You also need a package MySequence; declaration at the top to set up the namespace. [ I missed the initial package declaration before code tags were added. Why do you give the package a different name than the file? That my cause confusion.] There may be more, but that's what I catch at first reading. Code tags would make it easier to scan. After Compline,
In Section
Seekers of Perl Wisdom
|
|