you can just use... if defined $result_ref->{'agency_id'} && $result_ref +->{'agency_id'} != 0
(unless there are agency_id values that are not numbers and you want to skip the if expression on them... but this would be generating warnings with your code, so I suppose there aren't)... if $result_ref->{agency_id}
In reply to Re: How would you rewrite this?
by salva
in thread How would you rewrite this?
by jacques
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |