Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: ensure ALL patterns in string

by toolic (Bishop)
on Jan 22, 2016 at 20:53 UTC ( [id://1153413]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1153413]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-20 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found