Geo-GeoNames
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
a module.
To build the distribution, run this file normally:
% perl Makefile.PL
But, it's more interesting than that. You can load it with C<require>
and call C<arguments> to get the data structure it passes to
C<WriteMakefile>:
my $package = require '/path/to/Makefile.PL';
my $arguments = $package->arguments;
Note that C<require>-ing a file makes an entry in C<%INC> for exactly
that name. If you try to C<require> another file with the same name,
even from a different path, C<require> thinks it has already loaded
the file. As such, I recommend you always require the full path to the
file.
The return value of the C<require> is a package name (in this case,
the name of the main module. Use that to call the C<arguments> method.
lib/Geo/GeoNames.pm view on Meta::CPAN
postalcode_country_info => 'postalCodeCountryInfo?',
postalcode_search => 'postalCodeSearch?',
search => 'search?',
wikipedia_bounding_box => 'wikipediaBoundingBox?',
wikipedia_search => 'wikipediaSearch?',
get => 'get?',
hierarchy => 'hierarchy?',
children => 'children?',
);
# r = required
# o = optional
# rc = required - only one of the fields marked with rc is allowed. At least one must be present
# om = optional, multiple entries allowed
# d = deprecated - will be removed in later versions
our %valid_parameters = (
search => {
'q' => 'rc',
name => 'rc',
name_equals => 'rc',
maxRows => 'o',
startRow => 'o',
country => 'om',
( run in 0.409 second using v1.01-cache-2.11-cpan-0d8aa00de5b )