in reply to First attempt at a module

Perl searches the module in the current directory, not the directory where the srcipt resides. Make sure to cd to the directory, and call perl mod.pl from there. The module and the code you've included work for me, except for that test_print does not print a newline. If, by any chance you have a \r in your shell prompt (assuming you're not on windows; yes, I was so stupid once to put a \r in my prompt), you won't see the output.

Replies are listed 'Best First'.
Re: Re: First attempt at a module
by sulfericacid (Deacon) on May 22, 2004 at 03:19 UTC
    Thanks for your help everyone. This was seriously bugging me! I renamed the mod and all the innards to a different name I KNEW wasn't used and it did as it was supposed to. There must have been something called TestPrint.pm already.

    Now that it's working, it's time to go play and break it again :)



    "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

    sulfericacid