I'm running a script which uses the Net::FTP module to run FTP sessions on
both UNIX and Vax/VMS boxes. I'm having problems trying to change the type
of data transfer. Extracts from the script follows

..
..
$host = "xxxxx";
$user = "xxxxxxx";
$password = "xxxxxx";
$type1 = "ascii";
$type2 = "binary";
..
..
print $ftp = Net::FTP->new($host),"\n";
print $ftp->login("$user","$password"),"\n";
*print $ftp->type("$type1"),"\n";
print $ftp->type,"\n";
*print $ftp->type("$type2"),"\n";
print $ftp->type,"\n";
print $ftp->quit,"\n";

I have written a subclass to deal with a logon problem with the Vax/VMS
box.

The problem is that the two lines marked with the * return the error:

"Use of uninitialized value in print at xxxxxx.pl line xxx."

This is the case when the session is on the UNIX box.

When on the Vax/VMS box  the ascii type change works, whereas the binary
one gives the error given above.

Any help would be appreciated

thanks

eddie


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to