in reply to Binary file download on Win32

I'm terribly sorry. I have just solved my problem - I should stop getting up at such early hours :) The problem was in the flow of execution in the script, basically after printing the content of binary files to STDOUT, the script kept going and printed some unrelated data as well.

Replies are listed 'Best First'.
Re: Re: Binary file download on Win32
by demerphq (Chancellor) on Oct 17, 2002 at 16:16 UTC
    Just a thought but its probably a good idea to set autoflush on for STDOUT.
    select((select(STDOUT),$|++)[0]);

    --- demerphq
    my friends call me, usually because I'm late....