in reply to Exception Error in perl code

The error message "Day '0' out of range 1..31" is a pretty strong hint, check your @dmy and I'm pretty sure you'll find that the first element is 0 (or something to that effect)

-- Time flies when you don't know what you're doing

Replies are listed 'Best First'.
Re^2: Exception Error in perl code
by Rajsri (Initiate) on Jun 29, 2009 at 05:12 UTC
    Hi, Thanks for the reply. I am new to perl programming, could you please let me know how to overcome this error. How should i assign @dmy. -Rajini

      First identify where @dmy gets assigned, and how. Then inspect what data it gets assigned from. Maybe you want to check that the data you assign from matches your expectations. It's not hard and it has little to do with Perl programming and more to do with general debugging.