use utf8;
print "it matches that weird char\n" if "012੧3456" =~ /^\d+$/; print "it does not match 'a'\n" unless "a" =~ /\d/; print "with the 'a' modifier, it does not match anymore\n" unless "012੧3456" =~ /^\d+$
/a
;
dXNlIHV0Zjg7CiAKcHJpbnQgIml0IG1hdGNoZXMgdGhhdCB3ZWlyZCBjaGFyXG4iIGlmICIwMTLgqaczNDU2IiA9fiAvXlxkKyQvOwpwcmludCAiaXQgZG9lcyBub3QgbWF0Y2ggJ2EnXG4iIHVubGVzcyAiYSIgPX4gL1xkLzsKcHJpbnQgIndpdGggdGhlICdhJyBtb2RpZmllciwgaXQgZG9lcyBub3QgbWF0Y2ggYW55bW9yZVxuIiB1bmxlc3MgIjAxMuCppzM0NTYiID1+IC9eXGQrJC9hOw==