in reply to ensure ALL patterns in string

Misread the question.

Equivalent code using a character class:

my $var = "xyz"; if ($var =~ /[xyz]/) { print "all in m8\n" }

Replies are listed 'Best First'.
Re^2: ensure ALL patterns in string
by previous (Sexton) on Jan 22, 2016 at 21:48 UTC
    No problem! Thanks for your willingness to help.