my ($mday, $mon, $year) = localtime($mtime)[3,4,5]; #### my ($cmday, $cmon, $cyear) = localtime(time)[3,4,5];