Your call to localtime is a function call, and you can't do that from within a string. Perl does variable interpolation, which expands a variable's value, but it does not do function calls within a string.
In reply to Re: Can you explain the difference with print?
by talexb
in thread Can you explain the difference with print?
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |