develooper Front page | perl.libnet | Postings from May 2004

Re: FTP->Binary

Thread Previous
From:
Terrence Brannon
Date:
May 18, 2004 03:51
Subject:
Re: FTP->Binary
Message ID:
40A9EAA7.40208@urth.org
Graham Barr wrote:

>
> On 18 May 2004, at 11:12, Terrence Brannon wrote:
>
>> PerlDiscuss - Perl Newsgroups and mailing lists wrote:
>>
>>> I am trying to get my program to switch to Binary mode. I know the 
>>> command
>>> is ftp->binary();, however, it does not work.
>>>
>> where in the Net::FTP docs does it say that? I don't think you will 
>> find it.
>
>
> I think you will.

oh, what I was referring to was his lack of a dollar sign in front of 
"ftp" ---


>>>
>> You can set the default server transfer type when you create $ftp 
>> also... perldoc Net::FTP for more details:
>>
>> $net = Net::FTP->new($host, { Type => 'I' } ); #for example, untested
>
>
> Wow, thats new to me :-)
>
oops, Net::FTP::Common allows that. I am very rusty at Perl programming. 
my bad.


-- 
mathematics: the science of quantity, shape, and arrangement
computersci: the science of information description and transformation
liberalarts: essential study for adequate education and civic participation. 


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About