$thanks = "2017-11-24"; my ($thyear, $thmonth, $thday) = split(/-/,$thanks);