in reply to Conditional idiom : "if X equals Y or Z" ??
This won't do the match if $_->{Suppress} is already set. And it will only set Suppress if it wasn't set before, and if the Action matches one of the three options. It's also short, though not the shortest possible solution.for (@tabs) { $_->{Suppress} ||= $_->{Action} =~ /^(GetAll|Make|MakeOnly)$/; }
Alan
|
|---|