in reply to String match in Chinese character

Also, the OP contains a subtle error. As per utf8, the use utf8 pragma only instructs the Perl compiler to expect UTF8 in the source code. It does not affect the handling of input or output files.

Replies are listed 'Best First'.
Re^2: String match in Chinese character
by Your Mother (Archbishop) on Mar 12, 2018 at 17:09 UTC

    The OP does not even contain the string "use utf8" so, no. If you meant choroba's and pryrt's and 1nickt's code you can 1) assume it's right if you don't know any better because it's them, 2) try the code without it to see what happens so you learn something. Option 2 is impossible though, so…

      Your Mother, I assume you replying to Anonymous Monk, right?