in reply to
pattern matching in array
Simple one liner for the same.
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
shiny regexes and rules offered by Perl 6
other CPAN module
by looking at it on my monitor
I print it and I read it in spare time
first I convert it into $FORMAT, then I parse it
I hire someone to do it
using my custom module
I write a brand new language to do the task
on the server where I play as human, XML is forbidden
what is XML?
I speak XML natively
I write a new grammar for Perl 6
some other way
Results (442 votes),