in reply to pattern matching in array
perl -e 'my @ar = qw( adf "afaf faf ff" af "abf"); $_ =~ m/^\".+$/ &&
+print "Yes=",$_,"\n" foreach(@ar);'
You don't need to escape the quote, nor gobble up the entire string. Simply: m/^"/
now i am trying to work to find words starting with "" in array and I am doing this
but it is not working , @foo_d always holds 1
A subterranean mammal
A skin blemish
A sprained ankle
A Childrens Book
The Marvel Comics supervillain
The unit of measure
Wie is de Mol
A futuristic drilling vehicle
The Wind in The Willows
Results (272 votes). Check out past polls.