Hi, ... and even without deparsing, you can see that under Time::Piece what localtime returns is different to what it assigns to a variable in scalar context:
$ perl -MTime::Piece -E 'say localtime; $x = localtime; say $x' 4351751111833380 Wed Dec 5 17:05:43 2018
Hope this helps!
In reply to Re: Time::Piece, localtime -- ambiguous, parentheses
by 1nickt
in thread Time::Piece, localtime -- ambiguous, parentheses
by leszekdubiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |