The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Build Status

NAME

Locale::Scope - scope based setlocale(3)

SYNOPSIS

use POSIX qw/LC_TIME/;
use Locale::Scope qw/locale_scope/;

# hear LC_TIME locale is C!!
{
    my $scope = locale_scope(LC_TIME, "ja_JP.UTF-8");
    # hear LC_TIME locale is ja_JP.UTF-8!!
    {
        my $scope = locale_scope(LC_TIME, "es_AR.ISO8859-1");
        # hear LC_TIME locale is es_AR.ISO8859-1!!
    }
    # hear LC_TIME locale is ja_JP.UTF-8!!
}
# hear LC_TIME locale is C!!

DESCRIPTION

THE SOFTWARE IS IT'S IN ALPHA QUALITY. IT MAY CHANGE THE API WITHOUT NOTICE.

Locale::Scope is scope based setlocale(3) for rollback locale at the end of a scope.

FUNCTION

SEE ALSO

POSIX Scope::Guard

LICENSE

Copyright (C) karupanerura.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

karupanerura karupa@cpan.org