Look at the values in array @INC. This is a list of the paths where Perl expects to find modules included with 'use'. Your .pm files need to be beneath one of these, but note that the path needs to include the full module name.
Suppose one of the elements of @INC is /usr/perl5/5.00503/lib then your two files should be at /usr/perl5/5.00503/lib/Getopt/Std.pm /usr/perl5/5.00503/lib/Digest/MD5.pm where it will find them correctly. Oh, and your final syntax error, your line should be use Digest::MD5 qw(md5); HTH, Rob ----- Original Message ----- From: "Sam Harris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 05, 2002 5:56 PM Subject: < a very novice > file location > I m very new to perl, please notice the errors I am including and tell > me how simple it is to correct them :) > > > > I have MD5.pm and Std.pm to be used in a directory above the one where > perl is, my script gives me an error that says > > # ./net_watch > ../net_watch[2]: use: not found > ../net_watch[3]: use: not found > ../net_watch[4]: syntax error at line 4 : `(' unexpected > > how do I solve the path requirement issue for perl for the error 1 -2, > then why is the third error is there from the following: > > #/usr/perl5/5.00503/bin/perl > use Getopt::Std; > use Digest::MD5; > qw(md5); > > > again thank you for your help :) > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]