Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > c868486f747f2df34f9a533ef7be0d19 > files > 21

perl-WWW-Myspace-0.60-10.fc16.noarch.rpm

#!/usr/bin/perl -w -I../lib
# get_friends [ friendID ]
# Returns your friends or the friends from the profile identified by
# friendID
#
# Example:
# get_friends
# 
# get_friends 12345

use WWW::Myspace;

my $myspace = new WWW::Myspace;
unless ( $myspace->logged_in ) { die "Login failed\n" }

my @friends = $myspace->get_friends( @ARGV );

warn $myspace->error if ( $myspace->error );

print "Got " . @friends . " friends:\n";

foreach ( @friends ) {
	print;
	print "\n";
}