It might help to know your version of Perl and of Data::Time; there's certainly nothing wrong with your code (except your failure to follow the formatting guidelines above and below the text box where you entered you question) under any win32 or Linux immediately available to me (w2k, XP, Vista, Ubuntu 10.04/Gnome or (ancient RHs).