Lingua::Postcodes - Returns the names of postcodes/zipcodes
version 0.002
use Lingua::Postcodes; print 'The English name of a postcode in the UK is:', Lingua::Postcodes::name('GB'); # The English name of a postcode in the UK is Postcode print 'The English name of a postcode in Japan is:', Lingua::Postcodes::name('JP', 'EN'); # The English name of a postcode in Japan is Postal code print 'The Japanese name of a postcode in Japan is:', Lingua::Postcodes::name('JP', 'JP'); # The Japanese name of a postcode in Japan is 郵便番号 # Alternate usage: use Ligua::Postcodes 'name'; print 'The Japanese name of a postcode in Japan is:', name('JP', 'JP'); # The Japanese name of a postcode in Japan is 郵便番号
This module allows the easy translation of the name of postcodes (postal codes/ zip codes).
Specifically it has been written to give the English name for post codes in other countries. When working on a multi-national website, where address information is required, this module helps the developer to put the correct term in the label of a HTML form to match the nation. For example, when handling the various names for postcodes across Europe.
This module does not parse or handle postcodes themselves; it simply provides a programmatic way of getting the correct name for postcodes for nations.
Lingua::Postcodes - Provide names for postcodes/zipcodes
Lance Wicks <lancew@cpan.org>
Copyright (c) 2016, Lance Wicks. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
This software is copyright (c) 2016 by Lance Wicks.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Lingua::Postcodes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::Postcodes
CPAN shell
perl -MCPAN -e shell install Lingua::Postcodes
For more information on module installation, please visit the detailed CPAN module installation guide.