my %suppress = map { $_ => 1 } qw(GetAll Make MakeOnly); for (@tabs) { $_->{Suppress} = 1 if exists $suppress{$_}; }
It's easy to read, fast and short.
-sam
In reply to Re: Conditional idiom : "if X equals Y or Z" ??
by samtregar
in thread Conditional idiom : "if X equals Y or Z" ??
by George_Sherston
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |