LWP, buffer flush question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


Not sure if this is an LWP issue or a general Perl question.

I'm downloading files in a foreach loop that retrieves a list of files
using the following:

   $req = HTTP::Request->new(GET => $some_file_url);
   $res = $ua->request($req, $some_file_name);

The number of files I retrieve usually number 100+, and I noticed that
while my script runs, the files do not appear to be written right away.
(Perhaps due to some buffering?).

Is there a way to force the output file to be written immediately after the  
$ua->request line above?

Any tips/hints would be appreciated.

Thanks in advance!


Site Timeline