Hi, here is the script which I used to do the ftp with ASCII command. Please
advise. Thanks very much!!
#!perl
$ls_filename_e = "E26067.SRV" ;
use Net::FTP ;
use constant HOST => 'hostname' ;
my $ftp = Net::FTP->new(HOST, Firewall=>'proxy') ;
$ftp->login('userID', 'password') ;
$ftp->ascii() ;
Regards,
Dominic Tan
[EMAIL PROTECTED]
Sent by: To:
[email protected]
[EMAIL PROTECTED] cc:
veState.com Subject: Re:
ActivePerl 5.8 -- problem on getting the download file in ASCII format
29/12/2004 11:37 AM
Dominic Tan wrote:
> Hi,
>
> I have tried the ftp script to get the file in ASCII format with the
> following command.
>
> However, it still come down in Binary format.
>
> FYI, I am using ActivePerl 5.8. (I have tried it on ActivePerl 5.6 and no
> problem)
>
> $ftp->ascii();
>
> Do you know why? How to resolve it? as I would like to download the file in
> ASCII format. Thanks vm.
I don't believe you. You're doing something else wrong or misunderstanding
something. Create a small test snippet that fails and a small ASCII file
to D/L and post your failing script and data.
--
,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED]
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--
This e-mail may contain confidential and/or privileged information. If you are
not the intended recipient (or have received this e-mail in error) please
notify the sender immediately and destroy this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-mail is strictly
forbidden.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs