in reply to Time::Piece, localtime -- ambiguous, parentheses

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!


The way forward always starts with a minimal test.