in reply to Can you explain the difference with print?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can you explain the difference with print?
by NERDVANA (Priest) on Aug 04, 2023 at 21:03 UTC | |
|
Re^2: Can you explain the difference with print?
by Bod (Parson) on Aug 04, 2023 at 20:53 UTC | |
by talexb (Chancellor) on Aug 04, 2023 at 21:00 UTC | |
by ikegami (Patriarch) on Aug 05, 2023 at 06:01 UTC |