The problem is that localtime has a prototype and that prototype says that localtime's first argument, if present, must be a scalar value, so arrays and lists are converted to a scalar value so localtime can use it.
$ perl -le'print prototype "CORE::localtime"' ;$
In reply to Re^3: Parenthetical help
by jwkrahn
in thread Parenthetical help
by eye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |