leszekdubiel has asked for the wisdom of the Perl Monks concerning the following question:
# perl -e 'use Time::Piece; $x = localtime; $y = localtime() - $x; pr +int "$y\n"; ' 0 # perl -e 'use Time::Piece; $x = localtime; $y = (localtime) - $x; pr +int "$y\n"; ' 0 # perl -e 'use Time::Piece; $x = localtime; $y = localtime - $x; print + "$y\n"; ' Thu Jan 1 01:00:00 1970
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Time::Piece, localtime -- ambiguous, parentheses
by Eily (Monsignor) on Dec 05, 2018 at 16:57 UTC | |
|
Re: Time::Piece, localtime -- ambiguous, parentheses
by haukex (Archbishop) on Dec 05, 2018 at 17:04 UTC | |
by ikegami (Patriarch) on Dec 06, 2018 at 03:43 UTC | |
|
Re: Time::Piece, localtime -- ambiguous, parentheses
by 1nickt (Canon) on Dec 05, 2018 at 17:09 UTC | |
|
Re: Time::Piece, localtime -- ambiguous, parentheses
by leszekdubiel (Scribe) on Dec 05, 2018 at 17:38 UTC |