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
In reply to Re: File regex question
by Abigail-II
in thread File regex question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |