Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: using grep to find a word

by Laurent_R (Prior)
on Jun 24, 2013 at 11:55 UTC ( #1040418=note: print w/ replies, xml ) Need Help??


in reply to Re^2: using grep to find a word
in thread using grep to find a word

@foo_d = grep(/""/, @arr);

Not working because you are looking for two double quotes instead of one double quote. If you want a double quote at the start of your string:

@foo_d = grep(/^"/, @arr);


Comment on Re^3: using grep to find a word
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040418]
help
Chatterbox?
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: (6)
As of 2015-07-04 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls