in reply to Fine tuning my condition statement
Regex alternation is costly and somewhat crufty.
Building a hash works, but I'd prefer to at least do it non-iteratively:
Personally, I'd use the following: next if grep $field eq $_, qw(first second third); grep in scalar context returns the number of matches.my %stop; @stop{qw(first second third)} = (); next if exists $stop{$field};
Makeshifts last the longest.
|
|---|