develooper Front page | perl.perl5.porters | Postings from March 2014

regex or Test::More fail?

Thread Next
From:
H.Merijn Brand
Date:
March 24, 2014 08:57
Subject:
regex or Test::More fail?
Message ID:
20140324095714.18513636@pc09.procura.nl
% perl -MTest::More -wE'like("[   0\n    ]",qr{\A\[   0\n    ]\Z}ms);done_testing'
ok 1
1..1
% perl5.19.11 -MTest::More -wE'like("[   0\n    ]",qr{\A\[   0\n    ]\Z}ms);done_testing'
not ok 1
#   Failed test at -e line 1.
#                   '[   0
#     ]'
#     doesn't match '(?^ums:\A\[   0\n    ]\Z)'
1..1
# Looks like you failed 1 test of 1.


-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.19   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

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