in reply to regex and embedded perl code
my( $year, $month, $day ) = ( $date =~ m{ (\d+) - (\d+) - (\d+) }x ); [download]