| Summary | Included libraries | Package variables | Synopsis | Description | General documentation | Methods |
| Summary | Top |
| Clair::Bio::EUtils - a base class for Bio::EUtils objects |
| Package variables | Top |
| No package variables defined. |
| Included modules | Top |
| Exporter |
| URI::Escape |
| Inherit | Top |
| Exporter |
| Synopsis | Top |
use Clair::Bio::EUtils qw($ESEARCH_URL); |
| Description | Top |
| This module is a container for variables useful inside of Clair::Bio::EUtils::*. |
| Methods | Top |
| build_url | Description | Code |
| hash2args | Description | Code |
| build_url | code | next | Top |
my %args = ( this => "that thing" ); |
| hash2args | code | prev | next | Top |
my %hash = ( this => "that thing", foo => "bar" ); |
| build_url | description | prev | next | Top |
sub build_url
{ my %params = @_;
my $base = $params{base} || "";
my $argsref = $params{args} || {};
unless ($base =~ /\?$/) {
$base .= "?";
}
return $base . hash2args(%$argsref);} |
| hash2args | description | prev | next | Top |
sub hash2args
{ my %args = @_;
map { delete $args{$_} unless $args{$_} } keys %args;
return join("&",
( map { uri_escape($_)."=".uri_escape($args{$_}) } sort keys %args ));} |
| EXPORTABLE METHODS | Top |
| EXPORTABLE VARIABLES | Top |
| $ROOT_URL - the base url that all eutils depend upon $ESEARCH_URL - the esearch url, including the ? at the end $TOOL - the name of the tool to send to EUtils $EMAIL - the email address to send to EUtils |
| AUTHOR | Top |
| Tony Fader, afader@umich.edu |