develooper Front page | perl.perl5.porters | Postings from June 2011

[perl #93590] [BUG] given-when clause not work properly when -T is specified

From:
Hongwen Qiu
Date:
June 26, 2011 20:21
Subject:
[perl #93590] [BUG] given-when clause not work properly when -T is specified
Message ID:
rt-3.6.HEAD-16080-1309142092-1661.93590-75-0@perl.org
# New Ticket Created by  Hongwen Qiu 
# Please include the string:  [perl #93590]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=93590 >


Hi,
The attached is a test file demonstrate that the given-when clause not 
work properly when -T is specified on the command line. However, without 
the -T command option, it works ok.
I test the example with Perl v5.12.4, v5.14.1 and v5.15.0, only v5.12.4 
tests ok while the other two test nok.
If the $chr is not read from a file, then all is ok. And also, If I 
write ['M', 'm'] instead of ['m', 'M'] then all is ok too. (/m/i also 
works fine, of course.)



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