in reply to Re^2: String (date) to time (integer)
in thread String (date) to time (integer)

Thank you. I am new to Perl, so I am not clear on how to decipher ("06/06/2009",'01/30/09').

Replies are listed 'Best First'.
Re^4: String (date) to time (integer)
by Corion (Patriarch) on Jun 06, 2009 at 15:05 UTC

    Actually, the relevant part is

    for my $date ("06/06/2009",'01/30/09') { ...

    which is a loop that loops over the two elements 06/06/2009 and 01/30/09. I used a loop to demonstrate the original case and a problematic case, because timelocal(...,30,1,9) would try to find the epoch time of the 30th of February, which doesn't exist in our calendar.