=head1 SYNOPSIS
use Locale::Constants;
-
+
$codeset = LOCALE_CODE_ALPHA_2;
=head1 DESCRIPTION
=head1 SYNOPSIS
use Locale::Country;
-
+
$country = code2country('jp'); # $country gets 'Japan'
$code = country2code('Norway'); # $code gets 'no'
-
+
@codes = all_country_codes();
@names = all_country_names();
-
+
# add "uk" as a pseudo country code for United Kingdom
Locale::Country::_alias_code('uk' => 'gb');
code for United Kingdom, use the following:
use Locale::Country;
-
+
Locale::Country::_alias_code('uk' => 'gb');
With this code, both "uk" and "gb" are valid codes for United Kingdom,
country name:
$| = 1; # turn off buffering
-
+
print "Enter country code: ";
chop($code = <STDIN>);
$country = code2country($code, LOCALE_CODE_ALPHA_2);
=head1 SYNOPSIS
use Locale::Language;
-
+
$lang = code2language('en'); # $lang gets 'English'
$code = language2code('French'); # $code gets 'fr'
-
+
@codes = all_language_codes();
@names = all_language_names();
language name:
$| = 1; # turn off buffering
-
+
print "Enter language code: ";
chop($code = <STDIN>);
$lang = code2language($code);
Two types of mutators have different calling conventions:
-=over 4
+=over
=item C<++> and C<-->
Inheritance interacts with overloading in two ways.
-=over 4
+=over
=item Strings as values of C<use overload> directive
actual array, and the access hash. The tie()ing object for the access
hash is a reference to a reference to the actual array, so
-=over 4
+=over
=item *
}
This module is very unusual as overloaded modules go: it does not
-provide any usual overloaded operators, instead it provides the
-L<Last Resort> operator C<nomethod>. In this example the corresponding
+provide any usual overloaded operators, instead it provides the L<Last
+Resort> operator C<nomethod>. In this example the corresponding
subroutine returns an object which encapsulates operations done over
the objects: C<new symbolic 3> contains C<['n', 3]>, C<2 + new
symbolic 3> contains C<['+', 2, ['n', 3]]>.
tie %ea, 'OS2::ExtAttr', 'my.file';
print $ea{eaname};
$ea{myfield} = 'value';
-
+
untie %ea;
=head1 DESCRIPTION
my_type() returns the type of the current process (one of
"FS", "DOS", "VIO", "PM", "DETACH" and "UNKNOWN"), or C<undef> on error.
-=over 4
+=over
=item C<file_type(file)>
returns the type of the executable file C<file>, or
dies on error. The bits 0-2 of the result contain one of the values
-=over 4
+=over
=item C<T_NOTSPEC> (0)
The remaining bits should be masked with the following values to
determine the type of the executable:
-=over 4
+=over
=item C<T_BOUND> (8)
returns a list of the following data:
-=over 4
+=over
-=item *
+=item
Title of the process (in the C<Ctrl-Esc> list);
-=item *
+=item
window handle of switch entry of the process (in the C<Ctrl-Esc> list);
-=item *
+=item
window handle of the icon of the process;
-=item *
+=item
process handle of the owner of the entry in C<Ctrl-Esc> list;
-=item *
+=item
process id of the owner of the entry in C<Ctrl-Esc> list;
-=item *
+=item
session id of the owner of the entry in C<Ctrl-Esc> list;
-=item *
+=item
whether visible in C<Ctrl-Esc> list;
-=item *
+=item
whether item cannot be switched to (note that it is not actually
grayed in the C<Ctrl-Esc> list));
-=item *
+=item
whether participates in jump sequence;
-=item *
+=item
program type. Possible values are:
session. Likewise, if it's a full-screen WIN-OS/2 program, it runs in
a PROG_VDM session.
+
=back
=item C<set_title(newtitle)>