Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
How do I install this perl plugin or whatever?
Old 03-18-2009, 11:08 PM How do I install this perl plugin or whatever?
Junior Talker

Posts: 3
Name: Josh
Trades: 0
I am wanting to run this perl script for my twitter account, but I was told i need something called Net::Twitter (Here is the Net::Twittter readme). I don't know a thing about perl, so I dont know what to do.

Do I install the .tar.gz for Net::Twitter, or what.

Any help is appreciated.

btw, there is the script I'm wanting to run.
Code:
sub follow_everyone {
# just a few variables
  my $results;
  my @friends;
  my @followers;

# get list off all friends, basically like using http://apiwiki.twitter.com/REST+API+Documentation#SocialGraphMethods
  $results = $twit->friends_ids();
  foreach my $tweet (@{ $results }) {
    push(@friends, $tweet);
  }

# same as above but for lollowers
  $results = $twit->followers_ids();
  foreach my $tweet (@{ $results }) {
    push(@followers, $tweet);
  }

# this compares friends with followers and and puts the differance in an array
  %friends = map {$_, 1} @friends;
  @difference = grep {!$friends {$_}} @followers;

# then follow each user_id from the differance http://apiwiki.twitter.com/REST+API+Documentation#create
  foreach my $follower (@difference) {
    $twit->create_friend({id=>$follower});
  }
}
wee493 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to How do I install this perl plugin or whatever?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.42419 seconds with 12 queries