in reply to Re: how to automate the regular expression match from a file?
in thread how to automate the regular expression match from a file?

For starters...
use warnings; use strict;
...after your shebang line and work out any issues.

Secondly, add print statements to see what is actually happening (within your loop, for example).