GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
bareword::filehandles(3) User Contributed Perl Documentation bareword::filehandles(3)

bareword::filehandles - disables bareword filehandles

version 0.007

    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 builtin filehandles "STDIN", "STDOUT", "STDERR", "ARGV", "ARGVOUT" and "DATA".

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

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

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".

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

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

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.

2019-05-27 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.