I keep getting this error only on my scripts running on Apache
Use of uninitialized value in negation (-) at /usr/local/perl5.10/lib/
+site_perl/5.10.0/i686-linux/DateTime.pm line 1651.
I have seen mentions of this type of error but no answer on what it is specifically supposed to cause this. Is this an XS error or something else?
Update: I did find the answer to my problem. While you can sort of get away with using cmp to compare dates, it will return an error because it is expecting a package name to be passed. What I should have been using was DateTime->compare( $dt1, $dt2 ) to compare the dates. The silences the error as well as sorts by date.