djcsch2001

#!/usr/bin/perl -w
use File::Temp qw(tempdir);
use File::Spec::Functions;
use LWP::Simple qw(getstore);

my ($temp_dir)=tempdir(CLEARUP => 1);
my %searches = (
    google =>\'http://www.google.com/#h1=en&q=perl\',
    yahoo => \'http://search.yahoo.com/search?p=perl\',
    microsoft => \'http://www.bing.com/search?q=perl\',
);


foreach my $search (keys %searches) {
    getstore($searches{$search},catfile($temp_dir,$search));
}

分类:

技术点:

相关文章:

  • 2022-02-06
  • 2021-11-29
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2021-11-12
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2021-11-25
  • 2021-07-02
  • 2022-03-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案