Don't ask to ask, just ask | |
PerlMonks |
%ENV{TZ} does not always affect CORE::localtime() under multi-threaded perlby dda (Friar) |
on Apr 16, 2003 at 20:02 UTC ( [id://251018]=perlquestion: print w/replies, xml ) | Need Help?? |
dda has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks!
Consider the following code: The code does not work properly at each invocation. Looks like $ENV{TZ} is cached somewhere. If I add some debug messages, like 'warn "$ENV{TZ}"', before calling localtime(), it works always. The problem exists only at one of our linux boxes, with perl, v5.8.0 built for i386-linux-thread-multi. Another machines with perl 5.6.1, single-treaded, are not affected. Probably it is a known issue? --dda
Back to
Seekers of Perl Wisdom
|
|