| 1 |
package WWW::Search::PubMed::Result; |
| 2 |
|
| 3 |
=head1 NAME |
| 4 |
|
| 5 |
WWW::Search::PubMed::Result - NCBI Search Result |
| 6 |
|
| 7 |
=head1 SYNOPSIS |
| 8 |
|
| 9 |
use WWW::Search; |
| 10 |
my $s = new WWW::Search ('PubMed'); |
| 11 |
$s->native_query( 'ACGT' ); |
| 12 |
while (my $result = $s->next_result) { |
| 13 |
print $result->title . "\n"; |
| 14 |
print $result->description . "\n"; |
| 15 |
print $result->pmid . "\n"; |
| 16 |
print $result->abstract . "\n"; |
| 17 |
} |
| 18 |
|
| 19 |
=head1 DESCRIPTION |
| 20 |
|
| 21 |
WWW::Search::PubMed::Result objects represent query results returned |
| 22 |
from a WWW::Search::PubMed search. See L<WWW::Search:PubMed> for more |
| 23 |
information. |
| 24 |
|
| 25 |
=head1 VERSION |
| 26 |
|
| 27 |
This document describes WWW::Search::PubMed version 1.004, |
| 28 |
released 31 October 2007. |
| 29 |
|
| 30 |
=head1 REQUIRES |
| 31 |
|
| 32 |
L<WWW::Search::PubMed|WWW::Search::PubMed> |
| 33 |
|
| 34 |
=head1 METHODS |
| 35 |
|
| 36 |
=over 4 |
| 37 |
|
| 38 |
=cut |
| 39 |
|
| 40 |
our($VERSION) = '1.004'; |
| 41 |
|
| 42 |
use strict; |
| 43 |
use warnings; |
| 44 |
|
| 45 |
use base qw(WWW::Search::Result); |
| 46 |
|
| 47 |
our $debug = 0; |
| 48 |
|
| 49 |
=item C<< abstract >> |
| 50 |
|
| 51 |
The article abstract. |
| 52 |
|
| 53 |
=cut |
| 54 |
|
| 55 |
sub abstract { return shift->_elem('abstract', @_); } |
| 56 |
|
| 57 |
=item C<< pmid >> |
| 58 |
|
| 59 |
The article PMID. |
| 60 |
|
| 61 |
=cut |
| 62 |
|
| 63 |
sub pmid { return shift->_elem('pmid', @_); } |
| 64 |
|
| 65 |
|
| 66 |
=item C<< date >> |
| 67 |
|
| 68 |
The article's publication date ("YYYY Mon DD"). |
| 69 |
|
| 70 |
=cut |
| 71 |
|
| 72 |
sub date { return shift->_elem('date', @_); } |
| 73 |
|
| 74 |
=item C<< year >> |
| 75 |
|
| 76 |
The article's publication year. |
| 77 |
|
| 78 |
=cut |
| 79 |
|
| 80 |
sub year { return shift->_elem('year', @_); } |
| 81 |
|
| 82 |
=item C<< month >> |
| 83 |
|
| 84 |
The article's publication month. |
| 85 |
|
| 86 |
=cut |
| 87 |
|
| 88 |
sub month { return shift->_elem('month', @_); } |
| 89 |
|
| 90 |
=item C<< day >> |
| 91 |
|
| 92 |
The article's publication day. |
| 93 |
|
| 94 |
=cut |
| 95 |
|
| 96 |
sub day { return shift->_elem('day', @_); } |
| 97 |
|
| 98 |
|
| 99 |
1; |
| 100 |
|
| 101 |
__END__ |
| 102 |
|
| 103 |
=back |
| 104 |
|
| 105 |
=head1 COPYRIGHT |
| 106 |
|
| 107 |
Copyright (c) 2003-2007 Gregory Todd Williams. All rights reserved. This |
| 108 |
program is free software; you can redistribute it and/or modify it under |
| 109 |
the same terms as Perl itself. |
| 110 |
|
| 111 |
=head1 AUTHOR |
| 112 |
|
| 113 |
Gregory Todd Williams C<< <[email protected]> >> |
| 114 |
|
| 115 |
=cut |