in reply to How do I split by '/'

Yet another way...
use strict; use warnings; my $date = '03/16/2010'; my $new_date = join '-', reverse split m{/}, $date; return $new_date;
You might also want to consider using one of the many CPAN Date modules.