Think about Loose Coupling | |
PerlMonks |
Re^2: Counting days with DateTime (updated)by tobyink (Canon) |
on Apr 02, 2020 at 07:18 UTC ( [id://11114946]=note: print w/replies, xml ) | Need Help?? |
Consider using:
This is because most of the DateTime add/subtract methods mutate the object the operated on, and you probably don't want $now to be a date in the future!
In Section
Seekers of Perl Wisdom
|
|