jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
On my Linux machine this works fine (perl v5.8.8), it prints epoch seconds, however, on the unix machine (perl v5.8.7) it prints: %s#! /usr/local/bin/perl -lw use strict ; use POSIX 'strftime' ; $ENV{TZ} = 'GMT' ; my $t = time() ; print strftime("%s", localtime(int $t)) ;
|
---|