I\'m looking for presence of an element in a list.
In Python there is an in keyword and I would do something like:
in
if element in list:
Probably Perl6::Junction is the clearest way to do. No XS dependencies, no mess and no new perl version required.
Perl6::Junction
use Perl6::Junction qw/ any /; if (any(@grant) eq 'su') { ... }