Skip to content

Instantly share code, notes, and snippets.

@semifor
Created September 25, 2009 15:48
Show Gist options
  • Save semifor/193645 to your computer and use it in GitHub Desktop.
Save semifor/193645 to your computer and use it in GitHub Desktop.
my @friends;
for ( my $cursor = -1; $cursor; ) {
my $r = $nt->friends({ screen_name => $screen_name, cursor => $cursor });
push @friends, @{$r->{users}};
$cursor = $r->{next_cursor};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment