in reply to grep for ending with double quotes
Your question asks to find words (presumably one per array element) that end in two " characters. But your regexp requires that the item being tested starts and ends with "", or in other words, contains "" and only "". You might want this:
my @ar = grep /""$/, @array;
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: grep for ending with double quotes
by Anonymous Monk on Jun 25, 2013 at 06:00 UTC | |
by davido (Cardinal) on Jun 25, 2013 at 06:16 UTC | |
by 2teez (Vicar) on Jun 25, 2013 at 06:18 UTC |