Why is the chomp needed? Remember, open does magical things...
My test execution of the code as proffered (wrapped with use strict, use warnings, and a print @Lines at the end) yielded no errors.
Now, there are security implications in using raw input as a filename in a two-argument open, but the code as presented does work.
In reply to Re^2: Perl to executable conversion error
by herveus
in thread Perl to executable conversion error
by swaroop.m
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |