in reply to Perl Matching

$_ = 'a"b"c"d'; $a = () = /"/g;
now $a contains exactly amount of "s in the $_. though I suspect there is a better and shorter way