develooper Front page | perl.perl5.porters | Postings from January 2017

[perl #130673] readline(FH) throws a warning, <FH> does not

Thread Next
From:
ROYAL
Date:
January 31, 2017 04:35
Subject:
[perl #130673] readline(FH) throws a warning, <FH> does not
Message ID:
rt-4.0.24-5889-1485794675-1436.130673-75-0@perl.org
# New Ticket Created by  ROYAL, Ryan 
# Please include the string:  [perl #130673]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=130673 >


A bare word file handle causes the readline(FH) function to emit a warning: Name "main::FH" used only once: possible typo at readline_test.pl line 4.

-The equivalent diamond operator <FH> used on the same bare word handle does not evoke the warning.

-Using a lexically scoped file handle with readline( $fh ) also does not evoke the warning.

See attached, thanks


========================== version ===========================
Strawberry Perl

C:\Home\RRoyal02\MyPrograms\perl\bin> perl5.24.0 -v

This is perl 5, version 24, subversion 0 (v5.24.0) built for MSWin32-x64-multi-thread

Copyright 1987-2016, Larry Wall


=========================== OS ============================
Windows 7 Enterprise
Intel Xeon CPU
32 GB Ram



The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About