You are trying to open the file named '$file', quotes included. No such files exists. You need no quotes here.open WRITE, '<', '$file' or die $!;
In reply to Re: Read first line from each file in a directory
by choroba
in thread Read first line from each file in a directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |