We Recommend

Learning Perl Learning Perl
In this smooth, carefully paced course, a leading Perl trainer teaches you to program in the language that threatens to make C, sed, awk, and the Unix shell obsolete for many tasks. This book is the "official" guide for both formal (classroom) and informal learning. It is fully accessible to the novice programmer.


Posted By

fris on 02/22/08


Tagged

google perl seo


Versions (?)


Who likes this?

4 people have marked this snippet as a favorite

adix
jonhenshaw
udayrayala
melling


get google page rank


Published in: Perl 


  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use warnings;
  5. use WWW::Google::PageRank;
  6.  
  7. if ($#ARGV != 0) {
  8. print(STDERR "Usage: $0 url\n");
  9. exit(0);
  10. }
  11.  
  12. my $pr = WWW::Google::PageRank->new;
  13. print scalar($pr->get($ARGV[0])), "\n";

Report this snippet 

You need to login to post a comment.