http://qs321.pair.com?node_id=11119943


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 ... };