NAME

   Data::Validate::WithYAML::Plugin::Country - check whether a given value
   is a valid country code

VERSION

   version 0.03

SYNOPSIS

   Your test.pl:

     use Data::Validate::WithYAML;

     my $validator = Data::Validate::WithYAML->new( 'validate.yml' );
     my %params    = (
         country => 'DE',
         # more user input
     );
     my %errors = $validator->validate( \%params );

   Your validate.yml:

     ---
     country:
       type: required
       plugin: Country
       format: alpha-2
       lang: en

   Currently this module supports to formats: alpha-2 that are two-letter
   country codes like 'DE', 'FR', etc. and alpha-3 that is the
   three-letter code (e.g. DEU, FRA).

   And it supports different languages so you use the country codes in
   your preferred language (see Locale::Country::Multilingual).

DESCRIPTION

   Check if the given value is a valid country code.

METHODS

check

AUTHOR

   Renee Baecker <[email protected]>

COPYRIGHT AND LICENSE

   This software is Copyright (c) 2012 by Renee Baecker.

   This is free software, licensed under:

     The Artistic License 2.0 (GPL Compatible)