in reply to Error while printing hash table
Date::Simple->new() returns an object (a blessed reference). That object has overloaded mathematical operators, which is why you can use numerical operators on it. But if you want to print it, you need to use an accessor that stringifies it meaningfully, such as via the as_d8, as_iso, or as_string. You can even interpolate the object into a string. But your usage isn't doing that.
You've got to read a module's POD if you want to understand how to use it.
Dave
In Section
Seekers of Perl Wisdom