If you just want the count of all white space words within double quotes in a text file, you don't need to keep much information hanging around. Try filtering:
perl -E 'say 0+map{split}grep{$i++%2}split/"/,do{undef$/;<>};' fil.txt
(Please pardon the golfing, I have this thing about keeping one-liners on one line ;-)
In reply to Re: Count Quoted Words
by jaredor
in thread Count Quoted Words
by flash4syth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |