in reply to Implementing a text filter on some dataset

I forgot to say that the function buldQuery doesn't work when a string with a space is given. For example:
my $query = buildQuery( <<EOQ ); (OR (OR AUTHOR=John Nash PROFIT=90% ) (OR AUTHOR=Matt PROFIT=80% ) ) EOQ print "\nQuery: $query\n";
This does not work because John Nash has a space in between. Can someone help me get it to work please?