in reply to Count Quoted Words
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 } } }
|
|---|