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]

Reply via email to