You read a variable named $file, but you never declared such a variable, much less assigned a value to it.
I hadn't even seen that one! Goes to show how important use strict; is.
In reply to Re^3: uninitialized value $_ in pattern match (m//)
by ikegami
in thread uninitialized value $_ in pattern match (m//)
by gvinu4u
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |