in reply to Convert date into day and month

my ($date, $file_name) = split(","); ... my ($month, $day, $year) = split(m@/@, $date);

You should check $date's contents to make sure that you get it and what you've got.

You write your date has information separated by whitespace yet you match on a slash: / - that can't work, can it?

Cheers, Sören

Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)