This would have been caught had you included use strict;use warnings.
With not one but three warnings, even!
Unquoted string "file" may clash with future reserved word Name "main::file" used only once: possible typo -s on unopened filehandle file
In reply to Re^2: if/while/else problem
by ikegami
in thread if/while/else problem
by ddrew78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |