unless(check_date(param('year'), param('month'), param('day')) { # do something } #### my @month_lengths = (31, 28, 31, 30, ......);