my $outstring = ''; if($month == 8) { # August $outstring = ordinate($dayofmonth) . ' August ' . $year;