open FH, $file # dies
open my $fh, $file; # doesn't die
print FH $string # dies
print STDERR $string # doesn't die
DESCRIPTIONThis module lexically disables the use of bareword filehandles with builtin functions, except for the special builtin filehandles "STDIN", "STDOUT", "STDERR", "ARGV", "ARGVOUT" and "DATA".
unimportDisables bareword filehandles for the remainder of the scope being compiled.
importEnables bareword filehandles for the remainder of the scope being compiled.
AUTHORDagfinn Ilmari Mannsåker <[email protected]>
COPYRIGHT AND LICENSEThis software is copyright (c) 2011 by Dagfinn Ilmari Mannsåker.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.