flash4syth has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Count Quoted Words
by Cristoforo (Curate) on Jun 07, 2013 at 02:10 UTC | |
Re: Count Quoted Words
by smls (Friar) on Jun 07, 2013 at 03:51 UTC | |
Re: Count Quoted Words
by smls (Friar) on Jun 07, 2013 at 04:14 UTC | |
by flash4syth (Initiate) on Jun 13, 2013 at 03:35 UTC | |
Re: Count Quoted Words
by jaredor (Priest) on Jun 07, 2013 at 06:33 UTC | |
Re: Count Quoted Words
by Anonymous Monk on Jun 07, 2013 at 02:31 UTC |
Back to
Seekers of Perl Wisdom