in reply to Difference of localtime

$ perl -E 'say localtime time; say scalar localtime' 1946222311091530 Mon Feb 23 22:46:19 2009
$ perl -E'$foo = localtime time; say $foo; $bar = localtime; say $bar' Tue Feb 24 16:34:31 2009 Tue Feb 24 16:34:31 2009

You be the judge! :) (This time, be the judge with misleading code. Thanks, ysth and Annony.)

I guess I should have suggested for you to just try it yourself to begin with~

Update: Added smiley

And you didn't even know bears could type.

Replies are listed 'Best First'.
Re^2: Difference of localtime
by Anonymous Monk on Feb 24, 2009 at 08:33 UTC
    That is misleading because  my $foo = localtime; is scalar context.