in reply to Undefined subroutine

Perl already has a Test module. I believe your second piece of code is finding that first and using it.

You can add:

use lib '.';
to your script to make sure it finds your module first (assuming Test.pm is in the same directory as the script).

You probably just want to rename your module, though.

- Matt Riffle

Replies are listed 'Best First'.
Re: (2) Undefined subroutine
by J9 (Beadle) on Mar 11, 2003 at 14:19 UTC
    Renamed the module to J9Test.pm and changed the use part of the script to use J9Test.pm

    Still get the same result though.