# New Ticket Created by Hiroshi Manabe # Please include the string: [perl #129950] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=129950 > You can reproduc the bug with the following procedure: 1. perl -CO -e 'print "a\x{e4}";' > foo.txt # aƤ 2. perl -CI -e 'open IN, "<", "foo.txt"; $_ = <IN>; print m{^a|a\x{e4}$} . "matched\n" : "not matched\n"; Output: not matched This happenes only when the string is read from a file handle and the second character is in the range of \x{80}-\x{ff}. Curiously enough, the match succeeds if the regexp is m{^a|a[\x{e3}-\x{e4}]$} or m{^a|a[\x{e4}-\x{e5}]$}, but not if it is m{^a|a[\x{e4}-\x{e4}]$}.Thread Previous | Thread Next