Michael Robinton > Geo-CountryFlags-1.01 > Geo::CountryFlags::Util

Download:
Geo-CountryFlags-1.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Geo::CountryFlags::Util - Makefile.PL and update utilities

SYNOPSIS ^

  require Geo::CountryFlags::Util;
  my $gcu = new Geo::CountryFlags::Util;

DESCRIPTION ^

Methods and functions to facilitate the update and rebuild the various cross reference tables in these modules as the CIA and ISO committees update the country codes and country flags.

NAME ^

|. $package .'::'. $mt .q| - hash to map values

SYNOPSIS ^

|. $package .q| provides a variety of methods and functions to lookup values either as hash-like constants (recommended) or directly from a hash array.

    require $|. $package .q|;
    my $|. $gcv .q| = new |. $package .q|;
    $value = $|. $gcv .q|->KEY;

  Perl 5.6 or greater can use syntax
    $value = $|. $gcv .q|->$key;

  or
    $subref = subref |. $package .q|;
    $value = $subref->($key);
    $value = &$subref($key);

  or
    $value = value |. $package .q|($key);
    |. $package .q|->value($key);

  to return a reference to the map directly

  $hashref = hashptr |. $package .q|($class);
  $value = $hashref->{$key};

DESCRIPTION ^

|. $package .q| maps |. $mt .q| values.

Values may be returned directly by designating the KEY as a method or subroutine of the form:

    $value = |. $package .q|::KEY;
    $value = |. $package .q|->KEY;
  or in Perl 5.6 and above
    $value = |. $package .q|->$key;
  or
    $|. $gcv .q| = new |. $package .q|;
    $value = $|. $gcv .q|->KEY;
  or in Perl 5.6 and above
    $value= =  $|. $gcv .q|->$key;

EXPORTs ^

Nothing

AUTHOR ^

Michael Robinton michael@bizsystems.com

COPYRIGHT and LICENSE ^

  Copyright 2006 Michael Robinton, michael@bizsystems.com

This module is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version,

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the Artistic License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

SEE ALSO ^

ISO to CIA flag mapping functions ^

These methods/functions are used to create the ISO => CIA flag map and are mostly used within this module.

syntax highlighting: