bareword::filehandles - disables bareword filehandles
version 0.002
no bareword::filehandles; open FH, $file # dies open my $fh, $file; # doesn't die print FH $string # dies print STDERR $string # doesn't die
This module lexically disables the use of bareword filehandles with builtin functions, except for the special builitin filehandles STDIN, STDOUT, STDERR, ARGV, ARGVOUT and DATA.
STDIN
STDOUT
STDERR
ARGV
ARGVOUT
DATA
Disables bareword filehandles for the remainder of the scope being compiled.
Enables bareword filehandles for the remainder of the scope being compiled.
perlfunc, B::Hooks::OP::Check.
Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
This 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.
To install bareword::filehandles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm bareword::filehandles
CPAN shell
perl -MCPAN -e shell install bareword::filehandles
For more information on module installation, please visit the detailed CPAN module installation guide.