in reply to Counting number of double quotes in a string
But to answer your question directly, to count the number of double-quote characters in a line, do this:
$count = ($line =~ y/"//); [download]