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; } }
In reply to Re: Re: How to substitute 0 (zero) Instead of 'n/a'
by ysth
in thread How to substitute 0 (zero) Instead of 'n/a'
by danield
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |