$mech->get($someurl,":content_file" => "$i.flv");
所以我得到一个url的内容并将其保存为flv文件.我想每隔一秒打印一下,剩下多少下载.有没有办法在WWW :: Mechanize中实现这一目标?
$mech->get( $someurl,":content_cb" => \&callback ); sub callback { my( $data,$response,$proto ) = @_; # save $data to $i.flv # print download notification }