Entoni has asked for the wisdom of the Perl Monks concerning the following question:
I tried entering URL from command line, and putting it into variable ($url = $ARGV[0];) and it works just fine.use strict; use warnings; use WWW::Google::PageRank; print "Enter URL:\n"; my $temp = <STDIN>; my $url = "http://".$temp; chomp($url); if (defined($url)) { my $pr = WWW::Google::PageRank->new; print scalar($pr->get($url)), "\n"; } else { print 'Page not specified!'. "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Google::PageRank module
by Gangabass (Vicar) on Jun 11, 2009 at 01:39 UTC | |
by Entoni (Initiate) on Jun 11, 2009 at 02:07 UTC | |
by Corion (Patriarch) on Jun 11, 2009 at 07:35 UTC | |
by Entoni (Initiate) on Jun 11, 2009 at 09:02 UTC |