[Omaha.pm] 1 night vs. 17 nights

Jay Hannah jhannah at omnihotels.com
Mon Jul 11 11:08:05 PDT 2005


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




More information about the Omaha-pm mailing list