The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Search::PubMedLite - Access PubMed's database of journal articles

SYNOPSIS

  use WWW::Search;
  my $search = new WWW::Search('PubMedLite');

  $search->native_query( 126941 );
  my $article = $search->next_result;

  my @fields = qw(
    pmid
    journal
    journal_abbreviation
    volulme
    issue
    title
    page
    year
    month
    affiliation
    abstract
    language
    doi
    text_url
    pmc_id
  );

  foreach my $field ( @fields ) {
    printf "%s: %s\n", $field, $article->{$field};
  }

AUTHOR

David J. Iberri, <diberri at cpan.org>

BUGS

NCBI error 803/temporarily unavailable

As of November 2008, the NCBI/PubMed servers have been a bit unpredictable in returning results to queries issued by W::S::PubMedLite. The only queries that appear to be failing are those that request the PubMed Central ID; for example:

  L<http://eutils.ncbi.nlm.nih.gov/entrez/eutils/elink.fcgi?dbfrom=pubmed&id=16402093&db=pmc>

The error returned by NCBI is "error 803/temporarily unavailable", which prevents WWW::Search::PubMedLite from filling the pmc_id field in results.

This impacts make test; specifically, if this error is encountered, the "pmc_id" test will be skipped and a brief explanation will be given. It should be safe to continue with the installation provided that the other tests are working. Again, it appears that this problem is confined to the pmc_id field.

Bug reports

Please report any bugs or feature requests to bug-www-search-pubmedlite at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Search-PubMedLite. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc WWW::Search::PubMedLite

You can also look for information at:

COPYRIGHT & LICENSE

Copyright 2007 David J. Iberri, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.