File: get_real_name

package info (click to toggle)
libwww-myspace-perl 0.82-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 728 kB
  • ctags: 170
  • sloc: perl: 4,646; makefile: 10
file content (18 lines) | stat: -rwxr-xr-x 397 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl -w -I../lib
# real_name friendID
# Prints the friend's real name
#
# Example:
# real_name 12345

use WWW::Myspace;

my $myspace = new WWW::Myspace( auto_login => 0 );

if ( my $name = $myspace->get_real_name( @ARGV ) ) {
    print "Real name: " . $name . "\n";
} else {
    print "Couldn't find mention of their name on their profile\n";
}

die $myspace->error if $myspace->error;