in reply to Need to print Epoch Seconds!!!

time() gives you that integer, but only if you call it in scalar context. RTFM.

Updated. jdporter admonishes himself to RTFM.

Replies are listed 'Best First'.
Re^2: Need to print Epoch Seconds!!!
by Fletch (Bishop) on May 10, 2005 at 03:16 UTC

    Context, schmontext; time returns the same thing.

    $ perl -le 'my( $l ) = time; my $s = time; print join( "\n", $l, $s )' 1115694879 1115694879
A reply falls below the community's threshold of quality. You may see it by logging in.