flash4syth has asked for the wisdom of the Perl Monks concerning the following question:
Long time Perl student, first time Perl Monks post.
My program reads in a text file, and I want to count white-space words which are between double quotes. The quote marks are already delimited by space. For example:
'Here is " a quoted string " for you'
The quotes often extend beyond one line, so as I read in the file, I split each line and append the result onto an array of words, here's an example of the resulting array content:
( '"', 'quoted', 'words', '"', )
How can I count the words between the quotes for every instance of open/close double quotes in this array?Thanks in advance