Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: how to select which words have Y and W

by jethro (Monsignor)
on Dec 26, 2013 at 10:53 UTC ( [id://1068411]=note: print w/replies, xml ) Need Help??


in reply to Re^2: how to select which words have Y and W
in thread how to select which words have Y and W

UPDATE: Add a print statement. And the regex should be /x|y/, i.e. you want to find an x or an y, not x followed by y. Another possible regex that would work would use a character class: /[xy]/

Replies are listed 'Best First'.
Re^4: how to select which words have Y and W
by rammohan (Acolyte) on Dec 26, 2013 at 10:57 UTC
    i tried but it doesn't work,slightly i change my code then it works that is
    my @yw_colors = grep {/yw/} @colors; ' print @yw_colors,$/
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2025-07-20 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.