in reply to regular expressions

Hi! is there a regular expression I can use instead of my line of code 'if ( $county eq 26005 )' ?
  1. Chances are you may want if ( $county == 26005 ) instead.
  2. To answer your question: yes! But unless you have a very good reason to do so... don't!!
Also, for lines that match '$county eq 26005' I need to count/total the corresponding '$yr_tot' field on the same line. How do you total a $scalar column in perl? there doesn't appear to be a function similar to sql's 'count'.
There doesn't appear to be a function similar to a gasoline pump as well.

To answer your question: $total+=$yr_tot.