[Omaha.pm] Yet another || quickie

Jay Hannah jhannah at omnihotels.com
Thu Aug 18 14:30:18 PDT 2005


BEFORE

  my $text = $args{text};
  $text = $error_codes->{$args{code}} if (!$text);

AFTER

  my $text = $args{text} || $error_codes->{$args{code}};

j




More information about the Omaha-pm mailing list