Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: Regex word options

by ww (Bishop)
on Nov 04, 2012 at 00:11 UTC ( #1002150=note: print w/replies, xml ) Need Help??

in reply to Re^2: Regex word options
in thread Regex word options

Alas, I erred.

The honorable choroba is correct; blame simple carelessness; intermittent, inadequate internet access in my second consecutive month on the road and my plain errror for the wrongful use of ||. As written above it should be a single Vbar; as choroba notes, it could also be written as:

#!/usr/bin/perl use 5.10.0; my @work=("I Arranged a meet.", "Transcribe this", "Shud Not MATCH"); for $work(@work) { if (($work =~ /Transcribe/) || ($work =~ /Arranged/) ) { say $work; } }

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2016-10-27 12:33 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (362 votes). Check out past polls.