I would like to compare two dates in Perl to check there difference(days,months and so on), format of both the dates are like DD-MMM-YYYY.
I am thinking of using mktime or DateTime module in Perl.
As the calculation will be frequent, i need efficient method.
Can you please suggest which is more efficient way out of 2 or any other for doing it in Perl.
Thanks.
mktime is a native system call which I believe should be faster than using DateTime.pm which instantiates new perl objects