WebService-CIA
view release on metacpan or search on metacpan
123456789101112131415---
name: WebService-CIA
version: 1.4
author:
- Ian Malpass (ian-cpan
@indecorous
.com)
abstract: Get information from the CIA World Factbook.
license: perl
resources:
license: http://dev.perl.org/licenses/
requires:
Crypt::SSLeay: 0
DB_File: 1.8
LWP::UserAgent: 2.0
MLDBM: 2.01
Storable: 2.0
lib/WebService/CIA.pm view on Meta::CPAN
190191192193194195196197198199200201202203204205206207208209210Sets the base URL
for
the Factbook (currently
Factbook changes location, this can be changed to point to the new location
(assuming the relative structure of the Factbook is unchanged).
=back
=head1 AUTHOR
Ian Malpass (ian-cpan@indecorous.com)
=head1 COPYRIGHT
Copyright 2003-2007, Ian Malpass
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
The CIA World Factbook's copyright information page
lib/WebService/CIA/Parser.pm view on Meta::CPAN
115116117118119120121122123124125126127128129130131132133134135
$html
= get(
);
$parser
= WebService::CIA::Parser->new;
$data
=
$parser
->parse(
$html
);
$data
->{
"Population"
};
=head1 AUTHOR
Ian Malpass (ian-cpan@indecorous.com)
=head1 COPYRIGHT
Copyright 2003-2007, Ian Malpass
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
The CIA World Factbook's copyright information page
lib/WebService/CIA/Source.pm view on Meta::CPAN
858687888990919293949596979899100101102103104105=item C<all($country_code)>
Retrieve all fields and values. Always returns an empty hashref.
=back
=head1 AUTHOR
Ian Malpass (ian-cpan@indecorous.com)
=head1 COPYRIGHT
Copyright 2003-2007, Ian Malpass
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
The CIA World Factbook's copyright information page
lib/WebService/CIA/Source/DBM.pm view on Meta::CPAN
155156157158159160161162163164165166167168169170171172173174175=item C<dbm()>
Returns a reference to the DBM file in use.
=back
=head1 AUTHOR
Ian Malpass (ian-cpan@indecorous.com)
=head1 COPYRIGHT
Copyright 2003-2007, Ian Malpass
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
The CIA World Factbook's copyright information page
lib/WebService/CIA/Source/Web.pm view on Meta::CPAN
252253254255256257258259260261262263264265266267268269270271272=item User-definable stack of cached countries, rather than just one.
=item Caching of last-modified headers; conditional GET.
=back
=head1 AUTHOR
Ian Malpass (ian-cpan@indecorous.com)
=head1 COPYRIGHT
Copyright 2003-2007, Ian Malpass
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
The CIA World Factbook's copyright information page
( run in 0.321 second using v1.01-cache-2.11-cpan-8d75d55dd25 )