This won't do what you want, whether it compiles or not.:
open($file or die "can not open .txt file: $!") ;This line appears to have changed from the original node:
foreach $file (@files) {That will not work under strict unless you've added a my $file somewhere above that. Try not to hand-copy the code. Using copy and paste is much more accurate.
In reply to Re^7: Use of uninitialized value in string eq
by mr_mischief
in thread Use of uninitialized value in string eq
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |