If you don't need to keep the quotes just remove them before the match
while (<$fh>){ next unless /\S/; # skip blank lines s/"//g; # remove all "
or if they are optional try
if (/STATUS\s+Acct:"?(\d+)/){ $acct = $1; }
See perlretut
pojIn reply to Re^19: How do I use grep in a script
by poj
in thread How do I use grep in a script
by Flintlock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |