[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Omaha.pm] ?: vs ||



Two examples before:

print_font('text_font',
           $print_double_miles ? 
           $print_double_miles
           : 0);

my $omni_status = $fg_stay_hashref->{'omni_status'} ?
                  $fg_stay_hashref->{'omni_status'}
                  : '010';


After (untested):

print_font('text_font', $print_double_miles || 0);

my $omni_status = $fg_stay_hashref->{'omni_status'} || '010';