Perlbeginner1 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use WWW::Mechanize::Firefox; my $mech = WWW::Mechanize::Firefox->new(); open(INPUT, "urls.txt") or die "Can't open file: $!"; while (<INPUT>) { chomp; $mech->get($_); my $png = $mech->content_as_png(); } close(INPUT); exit;
Filename: urls.txt ------------------ www.google.com www.cnn.com www.msnbc.com news.bbc.co.uk www.bing.com www.yahoo.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Mechanize - how to add a certain variable to get a sorted output
by Corion (Patriarch) on Dec 10, 2011 at 14:22 UTC | |
|