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;