This won't work because you are opening the filehandle only for writing. In fact it will clobber the contents of the file.
It should be:
# open FILE, ">filename.txt" or die $!; #output only, and deprecated s +yntax open my $file, '<', 'filename.txt' or die $!; while (my $ethernet = <$file>) { ## do something }
In reply to Re^2: A regex question.
by 1nickt
in thread A regex question.
by FeistyLemur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |