Don't ask to ask, just ask | |
PerlMonks |
Re: Json::PP data errorby stevieb (Canon) |
on Dec 23, 2019 at 22:47 UTC ( [id://11110566]=note: print w/replies, xml ) | Need Help?? |
What's in $today? It seems to be an object of some sort, not a string, which may explain why putting the double-quotes around it allows it to be processed. This works:
But changing the $today assignment to:
...results in:
Do a print ref $today; within the "working" version of the script to understand what type of object $today is, and we'll help you figure out if there's a more proper way to stringify the object.
In Section
Seekers of Perl Wisdom
|
|