Although I admit that the ... operator is slighty obscure... :)my $count; foreach (@words) { my $quote = ($_ eq '"'); if ($quote ... $quote) { if (!$quote) { $count++ } elsif ($count) { print "$count quoted words\n"; $count = 0 } } }
In reply to Re: Count Quoted Words
by smls
in thread Count Quoted Words
by flash4syth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |