localtime is sensitive to its context. You want to force scalar context:
time_repr( scalar localtime )
In reply to Re: Prevent unstructuring reference when passed as a funciton parameter
by Corion
in thread Prevent unstructuring reference when passed as a funciton parameter
by leszekdubiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |