in reply to Re: Conditional idiom : "if X equals Y or Z" ??
in thread Conditional idiom : "if X equals Y or Z" ??

I fail to see how that's supposed to work. $_ -> {Action} is either "GetAll","Make" or "MakeOnly", and not some bitpattern.

But using a hash leads to one solution:

my %match = map {$_ => 1} qw /GetAll Make MakeOnly/; ... $_ -> {Suppress} = 1 if $match {$_ -> {Action}};

Abigail