Step 2: if($args->{desc} =~ /@{[join '|', keys %vendors]}/) { ... } else { ... } Depending on your Perl prowess you may or may not find step 2 readable.my $re = join '|', keys %vendors; if($args->{desc} =~ /$re/) { ... } else { ... }
Makeshifts last the longest.
In reply to Re^2: no grep match returns undefined?
by Aristotle
in thread no grep match returns undefined?
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |