"my" variable $file masks earlier declaration in same scope at test-a-filehandle.pl line 17. syntax error at test-a-filehandle.pl line 19, near "<$file> {" Execution of test-a-filehandle.pl aborted due to compilation errors.