in reply to Trouble with Dates
The problem here, is that you're feeding 'Delta_Days' an array that contains a comma separated string. Which is why it doesn't work - you're doing:
Delta_Days ( "2013,06,06", "2013,06,10" );
You need another 'split' and do so on a 'comma'. E.g.:
my ( $firstdate, $seconddate ) = split ( /\t/ ); my @dates1 = split ( ",", $firstdate ); my @dates2 = split ( ",", $seconddate );
You could probably do a bit more to smooth it out a bit further, but that's where you're going wrong. (I think - I've not run this code)
|
|---|