in reply to Convert date into day and month
In addition to what has been said earlier about the separators in your dates, I would suggest that, if the line that you are reading consist of a date and a filename separated by a comma, as suggested by this line of code:
then the following line:my ($date, $file_name) = split(",");
is probably useless, since the date is not anywhere near the end of line.$date =~ s@\r|\n@@g; # get rid of trailing newlines, however formatted
For the rest, the best would be that you supply a short data sample.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Convert date into day and month
by Ma (Novice) on Nov 01, 2013 at 14:35 UTC | |
by Kenosis (Priest) on Nov 01, 2013 at 16:48 UTC |