perlfunc also mentions this
This scalar value is not locale dependent but is a Perl builtin. ...
To get somewhat similar but locale dependent date strings, set up your locale environment variables appropriately ... use POSIX qw(strftime);
| [reply] [d/l] |
That's a curious way of phrasing it. It seems to suggest that anything that's a Perl builtin isn't locale dependent. But grepping through the perlfunc manual page does reveal builtins that have a locale dependency: lc, lcfirst, (s)printf, sort, uc, ucfirst. And then there are regular expressions.
| [reply] |
I stand corrected.
I however probably still wouldn't rely on it as there are probably way too many other functions that /do/ depend on the locale, or suddenly behave different if POSIX comes into play (or when it explicitely does not), or when modules happen to be in place that overrule this default.
Enjoy, Have FUN! H.Merijn
| [reply] |