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