There's more than one way to do things | |
PerlMonks |
Re: %ENV{TZ} does not always affect CORE::localtime() under multi-threaded perlby Chmrr (Vicar) |
on Apr 16, 2003 at 22:35 UTC ( [id://251074]=note: print w/replies, xml ) | Need Help?? |
This is a problem on the C level, I believe. The localtime(3) call does not always check the current value of the TZ environment variable. To force it to do so, POSIX-compliant systems should use the tzset(3) call. You can imitate this in perl via:
perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
In Section
Seekers of Perl Wisdom
|
|