Re: FTP->Binary
[email protected] ((PerlDiscuss - Perl Newsgroups and mailing lists)) 18 May 2004 13:41:45 -0000
| Newsgroups | perl.libnet |
|---|---|
| Organization | PerlDiscuss.com |
| Message-ID | <[email protected]> |
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 set it to Binary and then retrieve the type. Thanks for all your assistance. Isaac 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. By chance, i got the program > to work only when i have the following lines of code inserted: > $bin=$ftp->binary or die "Can not change the Type to Binaryn"; > $bin=$ftp->binary; > If I take out any of those lines it transfers in Ascii mode. Why? > Thanks > Isaac