vladsu
а вот, что мне надо было:
$CONSOLE=new Win32::Console(STD_OUTPUT_HANDLE);
$CONSOLE->Attr($FG_GREEN | $BG_BLACK);
...
open F,">$name";
binmode F;
$resp=$ua->request($req,\\&data,4096);
close F;
sub data{
my($data, $response, $protocol) = @_;
$length+=length($data);
print F $data;
$CONSOLE->Cursor(0,23,0,0);
my $size=$response->as_string();
$size=~s#.*Content-Length: (\\d*).*#$1#si;
printf "loading $name %7.2fk of %7.2fk - %2.2f%%",$length/1024,$size/1024,$length/$size*100;
}