in reply to Sparing multiple 'or's

Smart match?

if ($a ~~ qw(ABA SCO ACC PHC GHF)) { ... }

Replies are listed 'Best First'.
Re^2: Sparing multiple 'or's
by haukex (Archbishop) on Jun 05, 2018 at 07:28 UTC

    Smart matching is experimental, and may be drastically changed or potentially even removed in future versions of Perl.