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 commandwhere in the Net::FTP docs does it say that? I don't think you will find it.
is ftp->binary();, however, it does not work.
I think you will.
oh, what I was referring to was his lack of a dollar sign in front of "ftp" ---
oops, Net::FTP::Common allows that. I am very rusty at Perl programming. my bad.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 :-)
--
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.