![]() |
|
Just another Perl shrine | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
Dear toolic, Thank you for your reply. I now have changed all instances of "Test" with "MyModule" and also changed the name of the module. MyModule.pm is now situated on /storage/username/local/perl/site/liband I use use lib '/storage/username/local/perl/site/lib'; with the second case (as per the example):
but I still get the same error: Undefined subroutine &main::func1 called at MyScript line 15. Just to make sure I copied the module exactly from the example but to no avail. Interestingly, when I comment out the print func1 part, the line after that produces correct output. I hope that someone could point out to me where I am at fault. Best regards, Gideon In reply to Re^3: Simple Module Tutorial
by Anonymous Monk
|
|