Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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
Node Status?
node history
Node Type: note [id://1039957]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2017-11-20 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (283 votes). Check out past polls.

    Notices?