I need to run a Perl script, but make it think that it is in a different timezone (GMT) than the server is configured to use normally.
I would like to do this without modify the existing script, by means of some environment variables or any configuration settings if possible.
This is for OS X and its vendor Perl (v5.12.4).
You can use the TZ environment variable ($ENV{TZ}). See https://stackoverflow.com/questions/753346/how-do-i-set-the-timezone-for-perls-localtime for more details