Oh, that's a neat little hack: my $nights_text = ($nights == 1) ? 'night' : 'nights'; $html .= "$rate $currency per night starting $date_text for $nights $nights_text.<br>"; j