/usr/share/perl5/WWW/Finger.pm is in libwww-finger-perl 0.105-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | package WWW::Finger;
use 5.010;
use common::sense;
use utf8;
use Object::AUTHORITY 0;
use Carp 0;
use namespace::clean;
use Module::Pluggable
search_path => [qw/WWW::Finger WWW::FingerX/],
except => qr/^WWW::Finger(X?)::_/,
require => 1,
inner => 0,
sub_name => 'plugins',
;
BEGIN {
$WWW::Finger::AUTHORITY = 'cpan:TOBYINK';
$WWW::Finger::VERSION = '0.105';
}
sub new
{
my $class = shift;
my $identifier = shift;
my @Modules =
sort { $a->speed <=> $b->speed }
$class->plugins;
foreach my $module (@Modules)
{
my $rv = $module->new($identifier);
return $rv if defined $rv;
}
return undef;
}
sub name { return; }
sub mbox { return; }
sub key { return; }
sub image { return; }
sub homepage { return; }
sub weblog { return; }
sub endpoint { return undef; }
sub webid { return undef; }
sub graph { return undef; }
1;
__END__
=head1 NAME
WWW::Finger - get useful data from e-mail addresses
=head1 SYNOPSIS
use WWW::Finger;
my $finger = WWW::Finger->new("joe@example.com");
if (defined $finger)
{
print $finger->name . "\n";
}
=head1 DESCRIPTION
This module is I<not> an implementation of the finger protocol (RFC 1288).
Use Net::Finger for that. Instead it is a set of implementations of
I<other> methods for getting information from an e-mail address, or e-mail
like identifier. This package includes four such implementations, and it's
pretty easy to create your own additional implementations:
=over 8
=item * WebFinger
=item * Fingerpoint
=item * MetaCPAN API for cpan.org addresses
=item * Unnamed finger protocol described on bitworking.org
=back
=head2 Constructor
=over 8
=item * C<new>
$finger = WWW::Finger->new($identifier);
Creates a WWW::Finger object for a particular identifier. Will return
undef if no implemetation is able to handle the identifier
=back
=head2 Object Methods
Any of these methods can return undef if the appropriate information
is not available. The C<name>, C<mbox>, C<homepage>, C<weblog>,
C<image> and C<key> methods work in both scalar and list context.
Depending on which implementation was used by C<< WWW::Finger->new >>,
the object may also have additional methods. Consult the
documentation of the various implementations for details.
=over
=item C<name>
The person's name (or handle/nickname).
=item C<mbox>
The person's e-mail address (including "mailto:").
=item C<homepage>
The person's personal homepage.
=item C<weblog>
The person's blog. (There may be some overlap with C<homepage>.)
=item C<image>
An avatar, photo or other image depicting the person.
=item C<key>
The URL of the person's GPG/PGP public key.
=item C<webid>
A URI uniquely identifying the person. See L<http://esw.w3.org/topic/WebID>.
=item C<endpoint>
A SPARQL Protocol endpoint which may provide additional data about the person.
(See L<RDF::Query::Client>.)
=item C<graph>
An RDF::Trine::Model object holding data about the person. (See L<RDF::Trine>.)
=back
=head1 SEE ALSO
L<Net::Finger>.
L<http://code.google.com/p/webfinger/>.
L<http://buzzword.org.uk/2009/fingerpoint/spec>.
L<http://www.perlrdf.org/>.
L<fingerw>.
=head1 AUTHOR
Toby Inkster, E<lt>tobyink@cpan.orgE<gt>
=head1 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.
=head1 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.
=cut
|