$ 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.
In reply to Re: Difference of localtime
by Lawliet
in thread Difference of localtime
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |