Michael Robinton

Geo::CountryFlags::XCPs is autogenerated by Makefile.PL

Last updated Sat Sep 16 02:32:24 2006 GMT

NAME

Geo::CountryFlags::XCPs::XCPs - hash to map values

SYNOPSIS

Geo::CountryFlags::XCPs provides a variety of methods and functions to lookup values either as hash-like constants (recommended) or directly from a hash array.

    require $Geo::CountryFlags::XCPs;
    my $gcx = new Geo::CountryFlags::XCPs;
    $value = $gcx->KEY;

  Perl 5.6 or greater can use syntax
    $value = $gcx->$key;

  or
    $subref = subref Geo::CountryFlags::XCPs;
    $value = $subref->($key);
    $value = &$subref($key);

  or
    $value = value Geo::CountryFlags::XCPs($key);
    Geo::CountryFlags::XCPs->value($key);

  to return a reference to the map directly

  $hashref = hashptr Geo::CountryFlags::XCPs($class);
  $value = $hashref->{$key};

DESCRIPTION

Geo::CountryFlags::XCPs maps XCPs values.

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

    $value = Geo::CountryFlags::XCPs::KEY;
    $value = Geo::CountryFlags::XCPs->KEY;
  or in Perl 5.6 and above
    $value = Geo::CountryFlags::XCPs->$key;
  or
    $gcx = new Geo::CountryFlags::XCPs;
    $value = $gcx->KEY;
  or in Perl 5.6 and above
    $value= =  $gcx->$key;
  • $gcx = new Geo::CountryFlags::XCPs;

    Return a reference to the modules in this package.

  • $hashptr = hashptr Geo::CountryFlags::XCPs($class);

    Return a blessed reference to a copy of the hash in this package.

      input:        [optional] class or class ref
      returns:      a reference blessed into $class
                    if $class is present otherwise
                    blessed into Geo::CountryFlags::XCPs
  • $value = value Geo::CountryFlags::XCPs($key);

  • $value = $gcx->value($key);

    Return the value in the map hash or undef if it does not exist.

  • $subref = subref Geo::CountryFlags::XCPs;

  • $subref = $gcx->subref;

    Return a subroutine reference that will return the value of a key or undef if the key is not present.

      $value = $subref->($key);
      $value = &$subref($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

Geo::CountryFlags::Util