Home  |  Linux  | Mysql  | PHP  | XML
From:(PerlDiscuss - Perl Newsgroups and mailing lists) Date:Tue May 18 07:41:45 2004
Subject:Re: FTP->Binary
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


Navigate in group perl.libnet at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants