in reply to unicode string comparison (perl 5.26)
Note that | is special in regular expressions, so if you want to use it as a separator, you have to escape it.
Also, you probably meant
/[^\x00-\x7f]/ [download]
/[^/x00-\x7f]/ [download]