re: NET::Netrc
Hello All, I'm trying to use the Netrc module to read from the netrc file. Anyone familiar with it? Below is the code. I'm getting an error stating Can't call method "password" on an undefined value at ftp.pl line 28. Here is the code. Anyone see the problem. #Get the username and passwd of the remote mach. $mach = Net::Netrc->lookup('Name'); 28:$usr = $mach->login(); #$passwd = $mach->password(); print"The usr is -> $usr\n"; #print"The passwd is -> $passwd\n"; William Black _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NET::Netrc
I havent used this module but look at catching errors it "could be" something like this $mach = Net::Netrc->lookup('Name') || die Net::Netrc->error() Bye the way you have you created your .netrc file William Black wrote: > Hello All, > > I'm trying to use the Netrc module to read from the netrc file. Anyone > familiar with it? Below is the code. I'm getting an error stating > > Can't call method "password" on an undefined value at ftp.pl line 28. > > Here is the code. Anyone see the problem. > > #Get the username and passwd of the remote mach. > $mach = Net::Netrc->lookup('Name'); > > 28:$usr = $mach->login(); > #$passwd = $mach->password(); > > print"The usr is -> $usr\n"; > #print"The passwd is -> $passwd\n"; > > > > > William Black > > > > _ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]