in reply to Re: Re: File regex question
in thread File regex question

I would start with open FH, "<file";

No, you should not. You should always test the return value of open. Furthermore, I wouldn't use second class variables if I can avoid it. Finally, you may prefer 3-arg open over magic 2-arg open:

open my $fh, "<", "file" or die "Failed to open 'file': $!";

Abigail