"doolittle" <> wrote in message
..
..
>
> mymodule.pm is one that i have written (and which mymodscript.pl
> needs), and put in the same directory as mymodscript.pl.
>
There's a bit of a trap there. The fact that 'mymodule.pm' is in the same
directory as 'mymodscript.pl' doesn't really count for much.
What *is* important is that 'mymodule.pm' is in @INC.
On Win32, that will *typically* (but not necessarily) mean that
'mymodule.pm' has to be in either 'C:\perl\lib', 'C:\perl\site\lib' or the
cwd (current working directory).
To check all of this, your 'mymodscript.pl' could (untested):
use Cwd;
print getcwd, "\n";
for(@INC) { print "$_\n" unless $_ eq '.'}
If 'mymodule.pm' is not located in *any* of the specified locations, then
that's your problem.
Cheers,
Rob
|