in reply to Re: How to substitute 0 (zero) Instead of 'n/a'
in thread How to substitute 0 (zero) Instead of 'n/a'

If you must do this, try like this instead:
use warnings; while (<FH> ) { chomp; if ( /Impressions:/ ) { my($text, $value) = split(/:/, $_); print "Impressions: $value"; print "\n"; { no warnings "numeric"; $value += 0; # turn $value into a number } $impressions += $value; } }