Dagfinn Ilmari Mannsåker > bareword-filehandles-0.003 > bareword::filehandles

Download:
bareword-filehandles-0.003.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.003   Source  

NAME ^

bareword::filehandles - disables bareword filehandles

VERSION ^

version 0.003

SYNOPSIS ^

    no bareword::filehandles;

    open FH, $file            # dies
    open my $fh, $file;       # doesn't die

    print FH $string          # dies
    print STDERR $string      # doesn't die

DESCRIPTION ^

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.

METHODS ^

unimport

Disables bareword filehandles for the remainder of the scope being compiled.

import

Enables bareword filehandles for the remainder of the scope being compiled.

SEE ALSO ^

perlfunc, B::Hooks::OP::Check.

AUTHOR ^

Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: