Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: pattern matching in array

by hbm (Hermit)
on Jun 20, 2013 at 11:36 UTC ( #1039957=note: print w/replies, xml ) Need Help??


in reply to Re: pattern matching in array
in thread pattern matching in array

You don't need to escape the quote, nor gobble up the entire string. Simply: m/^"/

Replies are listed 'Best First'.
Re^3: pattern matching in array
by torres09 (Acolyte) on Jun 24, 2013 at 08:28 UTC
    hey

    now i am trying to work to find words starting with "" in array and I am doing this

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

    but it is not working , @foo_d always holds 1

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2021-09-17 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?