Re: FTP->Binary

2004-05-18 Thread Anthony R. J. Ball
Hehe.. that is because binary calls the type command internally, which returns the _old_ value of the type, not the value you set it to. :) On Tue, May 18, 2004 at 01:41:45PM -, PerlDiscuss - Perl Newsgroups and mailing lists wrote: > Ok, I resolved the issue. > > For some reason PERL

Re: FTP->Binary

2004-05-18 Thread PerlDiscuss - Perl Newsgroups and mailing lists
Ok, I resolved the issue. For some reason PERL does not like the command: $bin=$ftp->binary; The reason why I needed a variable is to "verify" that it is actually in BIN mode. What I to resolve this issue was to code as follows: $ftp->binary; $bin=$ftp->type; By doing it this way I was able to

Re: FTP->Binary

2004-05-18 Thread Terrence Brannon
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

Re: FTP->Binary

2004-05-18 Thread Graham Barr
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 fi

Re: FTP->Binary

2004-05-18 Thread Terrence Brannon
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. By chance, i got the program to work only when