X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FLocale%2FConstants.pm;h=d8ef8f7e21a1d2e56ec04ec59f0944be0b107894;hb=c9d0c046ab7aa1e87edc8cd6fbfa8dc66f709875;hp=9dfe1dbcbb21e98e1ccd59df330fd474f259eda4;hpb=28b605d8910b6ca7063fcd3cd10e0b471b6b8c9b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Locale/Constants.pm b/lib/Locale/Constants.pm index 9dfe1db..d8ef8f7 100644 --- a/lib/Locale/Constants.pm +++ b/lib/Locale/Constants.pm @@ -1,96 +1,31 @@ -package Locale::Constants; # # Locale::Constants - defined constants for identifying codesets # -# $Id: Constants.pm,v 1.1 2001/03/04 17:58:15 neilb Exp $ +# $Id: Constants.pm,v 2.7 2004/06/10 21:19:34 neilb Exp $ # +package Locale::Constants; use strict; require Exporter; +#----------------------------------------------------------------------- +# Public Global Variables +#----------------------------------------------------------------------- use vars qw($VERSION @ISA @EXPORT); +$VERSION = sprintf("%d.%02d", q$Revision: 2.7 $ =~ /(\d+)\.(\d+)/); @ISA = qw(Exporter); @EXPORT = qw(LOCALE_CODE_ALPHA_2 LOCALE_CODE_ALPHA_3 LOCALE_CODE_NUMERIC LOCALE_CODE_DEFAULT); +#----------------------------------------------------------------------- +# Constants +#----------------------------------------------------------------------- use constant LOCALE_CODE_ALPHA_2 => 1; use constant LOCALE_CODE_ALPHA_3 => 2; use constant LOCALE_CODE_NUMERIC => 3; -$VERSION = '1.00'; - use constant LOCALE_CODE_DEFAULT => LOCALE_CODE_ALPHA_2; 1; -__END__ - -=head1 NAME - -Locale::Constants - constants for Locale codes - -=head1 SYNOPSIS - - use Locale::Constants; - - $codeset = LOCALE_CODE_ALPHA_2; - -=head1 DESCRIPTION - -B defines symbols which are used in -the three modules from the Locale-Codes distribution: - - Locale::Language - Locale::Country - Locale::Currency - -B at the moment only Locale::Country supports -more than one code set. - -The symbols defined are used to specify which codes you -want to be used: - - LOCALE_CODE_ALPHA_2 - LOCALE_CODE_ALPHA_3 - LOCALE_CODE_NUMERIC - -You shouldn't have to C this module directly yourself - -it is used by the three Locale modules, which in turn export -the symbols. - -=head1 KNOWN BUGS AND LIMITATIONS - -None at the moment. - -=head1 SEE ALSO - -=over 4 - -=item Locale::Language - -Codes for identification of languages. - -=item Locale::Country - -Codes for identification of countries. - -=item Locale::Currency - -Codes for identification of currencies and funds. - -=back - -=head1 AUTHOR - -Neil Bowers Eneilb@cre.canon.co.ukE - -=head1 COPYRIGHT - -Copyright (C) 2001, Canon Research Centre Europe (CRE). - -This module is free software; you can redistribute it and/or -modify it under the same terms as Perl itself. - -=cut -