perl镜像函数mirror()的例子。 代码:
#!/usr/bin/perl -w
use LWP::Simple; use strict;
my $url = "http://www.jb200.com/"; my $file = "/tmp/demo";
my $status = mirror($url,$file);
die "Cannot retrieve $url" unless is_success($status);
CopyRight © 2010-2021 脚本学堂 Jb200.com , All Rights Reserved.