in reply to How do I split by '/'

Is this what you tried?
$date = '03/16/2010'; @date_array = split(/\//, $date); $new_date = join('-', @date_array[2], @date_array[1], @date_array[0]); print $new_date;
This worked for me: 2010-16-03