WebService-CIA

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

---
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

Sets the base URL for the Factbook (currently 
"https://www.cia.gov/library/publications/the-world-factbook/"). If the
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

  $html = get(
    "https://www.cia.gov/library/publications/the-world-factbook/print/uk.html"
  );
  $parser = WebService::CIA::Parser->new;
  $data = $parser->parse($html);
  print $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

=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


=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


=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.438 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )