Don't ask to ask, just ask | |
PerlMonks |
Writing Modulesby perl.j (Pilgrim) |
on Aug 23, 2011 at 02:54 UTC ( [id://921811]=perlquestion: print w/replies, xml ) | Need Help?? |
perl.j has asked for the wisdom of the Perl Monks concerning the following question: I am writing my first module just to see if I can get it to work. It is extremely simple:
Then I used the module in a simpler script:
I know I got the module name right. My module is located in Perl/site/lib/Mine/Example/ on my computer. So why isn't my program printing "thing"? Thanks UPDATE:I changed some package and folder names to make it easier on everyone. I also changed my code to look like my reply to davido. Added strictures.
--perl.j
Back to
Seekers of Perl Wisdom
|
|