|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re^2: Time differenceby Anonymous Monk |
| on Aug 10, 2012 at 18:12 UTC ( #986794=note: print w/ replies, xml ) | Need Help?? |
|
I am fond of Date::Calc::Object (an extension to the above, of course) which defines an object that corresponds to a date-value ... so a particular date becomes "a self-contained thing" which you can then "ask questions of." Sometimes this turns out to be a very handy metaphor that can also result in fewer scalar variables floating around . . . a little cleaner code, maybe.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||