WebService-CIA

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
name: WebService-CIA
version: 1.4
author:
  - Ian Malpass (ian-cpan@indecorous.com)
abstract: Get information from the CIA World Factbook.
license: perl
resources:
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

190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
Sets 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

115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
  $html = get(
  );
  $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

85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
=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

155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
=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

252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
=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 )