in reply to A locale independent sprintf?
But the locale settings should not affect sprintf unless you explicitly activate it with a use locale pragma.
If you have it activated, you can disable it just for the sprintf call as follows:
my $foo = do { no locale; sprintf ... };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: A locale independent sprintf?
by swl (Parson) on Jul 29, 2020 at 08:48 UTC | |
by salva (Canon) on Jul 29, 2020 at 08:58 UTC | |
by swl (Parson) on Jul 29, 2020 at 11:27 UTC | |
by jcb (Parson) on Jul 30, 2020 at 01:51 UTC |
In Section
Seekers of Perl Wisdom