Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

net::finger(3pm) [debian man page]

Finger(3pm)						User Contributed Perl Documentation					       Finger(3pm)

NAME
Net::Finger - a Perl implementation of a finger client. SYNOPSIS
use Net::Finger; # You can put the response in a scalar... $response = finger('corbeau@execpc.com'); unless ($response) { warn "Finger problem: $Net::Finger::error"; } # ...or an array. @lines = finger('corbeau@execpc.com', 1); DESCRIPTION
Net::Finger is a simple, straightforward implementation of a finger client in Perl -- so simple, in fact, that writing this documentation is almost unnecessary. This module has one automatically exported function, appropriately entitled "finger()". It takes two arguments: o A username or email address to finger. (Yes, it does support the vaguely deprecated "user@host@host" syntax.) If you need to use a port other than the default finger port(79), you can specify it like so: "username@hostname:port". o (Optional) A boolean value for verbosity. True == verbose output. If you don't give it a value, it defaults to false. Actually, whether this output will differ from the non-verbose version at all is up to the finger server. "finger()" is context-sensitive. If it's used in a scalar context, it will return the server's response in one large string. If it's used in an array context, it will return the response as a list, line by line. If an error of some sort occurs, it returns undef and puts a string describing the error into the package global variable $Net::Finger::error. If you'd like to see some excessively verbose output describing every step "finger()" takes while talking to the other server, put a true value in the variable $Net::Finger::debug. Here's a sample program that implements a very tiny, stripped-down finger(1): #!/usr/bin/perl -w use Net::Finger; use Getopt::Std; use vars qw($opt_l); getopts('l'); $x = finger($ARGV[0], $opt_l); if ($x) { print $x; } else { warn "$0: error: $Net::Finger::error "; } BUGS
o Doesn't yet do non-blocking requests. (FITNR. Really.) o Doesn't do local requests unless there's a finger server running on localhost. o Contrary to the name's implications, this module involves no teledildonics. AUTHOR
Dennis Taylor, <corbeau@execpc.com> SEE ALSO
perl(1), finger(1), RFC 1288. perl v5.8.8 2001-11-02 Finger(3pm)

Check Out this Related Man Page

WWW::Finger::Fingerpoint(3pm)				User Contributed Perl Documentation			     WWW::Finger::Fingerpoint(3pm)

NAME
WWW::Finger::Fingerpoint - Investigate E-mail Addresses using Fingerpoint SYNOPSIS
## Using WWW::Finger use WWW::Finger; my $finger = WWW::Finger->new("joe@example.com"); if ($finger) { if ($finger->isa('WWW::Finger::Fingerpoint')) { print "WWW::Finger used WWW::Fingerpoint "; } print $finger->name . " "; # print person's name. } ## Using WWW::Finger::Fingerpoint directly use RDF::Query::Client; use WWW::Finger::Fingerpoint; my $fingerpoint = WWW::Finger::Fingerpoint->new("joe@example.com"); if ($fingerpoint->webid) { my $sparql = sprintf( "SELECT * WHERE {<%s> <http://xmlns.com/foaf/0.1/homepage> ?page.}", $fingerpoint->webid); my $query = RDF::Query::Client->new($sparql); my $results = $query->execute($fingerpoint->endpoint); while (my $row = $results->next) { print "Found page: " . $row->{'page'}->uri . " "; } } DESCRIPTION
As well as the standard WWW::Finger methods, WWW::Finger::Fingerpoint provides this additional method: "get($p1, $p2, ...)" $p1, $p2 and are RDF predicate URIs. Returns a list of values which are non-bnode objects of triples where the predicate URI is one of the parameters and the subject URI is the person/agent fingered. # Returns phone numbers... $finger->get('http://xmlns.com/foaf/0.1/phone', 'http://rdf.data-vocabulary.org/#tel'); SEE ALSO
WWW::Finger. RDF::Query::Client, RDF::Trine. <http://buzzword.org.uk/2009/fingerpoint/spec>. <http://www.perlrdf.org/>. AUTHOR
Toby Inkster, <tobyink@cpan.org> COPYRIGHT AND LICENCE
Copyright (C) 2009-2012 by Toby Inkster This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. perl v5.14.2 2012-02-23 WWW::Finger::Fingerpoint(3pm)
Man Page