![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Count Quoted Wordsby flash4syth (Initiate) |
on Jun 07, 2013 at 01:37 UTC ( #1037544=perlquestion: print w/replies, xml ) | Need Help?? |
flash4syth has asked for the wisdom of the Perl Monks concerning the following question: Hello, 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:
How can I count the words between the quotes for every instance of open/close double quotes in this array? Thanks in advance
Back to
Seekers of Perl Wisdom
|
|