first we will add this at the beginning (only the bold part)
#!/usr/local/bin/perl -w
#
#
=pod
=head1 NAME
esearch_wrapper.pl - Perl wrapper for NCBI's esearch web service interface
=head1 SYNOPSIS
esearch_wrapper.pl --email EMAIL --db NCBI_DB --query TERMS --file FILE
--help, --? print help message
Where I<FILE> is a file name.
Examples:
esearch_wrapper.pl --email=nobody@uerewhon.edu --db=genome --query="Thermanaerovibrio+acidaminovorans[organism]"
=head1 DESCRIPTION
This wraps NCBI's esearch utility, providing an interface to specify the user's email, the NCBI genome division, query terms, and an output file. If no output file is specified, results go into esearch_query_results.xml.
Note that this only retrieves IDs, at best. To download the data requires the efetch utility.
=head1 BUGS
This is a demonstration script for class. It illustrates some programming practices, but has several known issues:
We haven't completed the processing of XML results.
This uses wget (better to use LWP or BioPerl). Currently the output is confusing, due to messages on STDERR from wget.
=head1 VERSION
$Id$
=head1 AUTHOR
Arlin Stoltzfus (arlin@umd.edu)
=cut