The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

autolocale - auto call setlocale() when set $ENV{"LANG"}

SYNOPSIS

use autolocale;

$ENV{"LANG"} = "C"; # locale is "C"
{
    local $ENV{"LANG"} = "en_US";# locale is "en_US"
}
# locale is "C"

no autolocale; # auto setlocale disabled
$ENV{"LANG"} = "en_US"; # locale is "C"

DESCRIPTION

autolocale is pragma module that auto call setlocale() when set $ENV{"LANG"}.

AUTHOR

Hideaki Ohno <hide.o.j55 {at} gmail.com>

SEE ALSO

LICENSE

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