in reply to Re: Re: %ENV{TZ} does not always affect CORE::localtime() under multi-threaded perl
in thread %ENV{TZ} does not always affect CORE::localtime() under multi-threaded perl

What dda means to say is:

here is the output on a redhat 8, perl 5.8.0 (multithreaded) box (actually we have tried 3 redhat 8 boxes):

perl -e '$ENV{TZ} = "EST";print scalar localtime(), "\n";$ENV{TZ} = "DST";print scalar localtime(), "\n";'
Wed Apr 16 15:47:41 2003
Wed Apr 16 15:47:41 2003


whereas on a redhat 7.2, perl 5.6.1 box, the output is
Wed Apr 16 15:42:25 2003
Wed Apr 16 20:42:25 2003


and on a freebsd box, perl 5.8.0, the output is also correct, i.e.
Wed Apr 16 15:42:25 2003
Wed Apr 16 20:42:25 2003

perl 5.6.1 under cygwin seems to manifest the problem also.
  • Comment on Re: Re: Re: %ENV{TZ} does not always affect CORE::localtime() under multi-threaded perl