----- Original Message -----
From: "Carey Eldon Hall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 22, 2001 1:11 PM
Subject: Changing The Transfer Mode to ASCII when Sending the File w/ FTP
> Hello,
>
> Well that just about sums up my problem. I can't seem to do it, I have
> looked up in the documentation on FTP and here is what I found to use
>
> $FTP->Ascii() || die "ERROR-FTP BLOCK: Cannot change to ASCII mode - $!";
>
> The die part I added just so that I could be sure that it was changing the
> mode to ASCII. However when I run this I get my error and the termination
> of the script.
>
> I am sure this is something I am looking over but I can't seem to find any
> documentation on it.
>
try - $ftp->type(TYPE, "ascii");
or
$ftp = Net::FTP->new($host, Debug => 0);
$ftp->login($user, $password) or die $ftp->message;
$ftp->ascii or die $ftp->message;
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users