Movatterモバイル変換


[0]ホーム

URL:


 / 
bareword-filehandles-0.007
River stage two • 12 direct dependents • 21 total dependents
/bareword::filehandles

NAME

bareword::filehandles - disables bareword filehandles

VERSION

version 0.007

SYNOPSIS

no bareword::filehandles;open FH, $file            # diesopen my $fh, $file;       # doesn't dieprint FH $string          # diesprint STDERR $string      # doesn't die

DESCRIPTION

This module lexically disables the use of bareword filehandles with builtin functions, except for the special builtin filehandlesSTDIN,STDOUT,STDERR,ARGV,ARGVOUT andDATA.

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.

LIMITATIONS

Filetest operators (-X) can not be checked on Perl versions before 5.32, because hooking the op check function for these breaks stacked tests, e.g.-f -w -x $file.

SEE ALSO

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

AUTHOR

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

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 - 2016 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.

Module Install Instructions

To install bareword::filehandles, copy and paste the appropriate command in to your terminal.

cpanm

cpanm bareword::filehandles

CPAN shell

perl -MCPAN -e shellinstall bareword::filehandles

For more information on module installation, please visitthe detailed CPAN module installation guide.

Keyboard Shortcuts

Global
sFocus search bar
?Bring up this help dialog
GitHub
gpGo to pull requests
gigo to github issues (only if github is preferred repository)
POD
gaGo to author
gcGo to changes
giGo to issues
gdGo to dist
grGo to repository/SCM
gsGo to source
gbGo to file browse
Search terms
module: (e.g.module:Plugin)
distribution: (e.g.distribution:Dancer auth)
author: (e.g.author:SONGMU Redis)
version: (e.g.version:1.00)

[8]ページ先頭

©2009-2025 Movatter.jp