How has support for regex with Unicode properties changed across recent Perl versions?

The support for regex with Unicode properties in Perl has evolved significantly over recent versions, enhancing the ability to handle internationalization and diverse text-processing tasks efficiently.
Perl, regex, Unicode properties, text processing, programming languages, internationalization

# Example of using Unicode properties in a regex pattern in Perl

# Match letters from any language
my $string = "こんにちは"; # Japanese for "Hello"
if ($string =~ /\p{L}+/) {
    print "The string contains letters.\n";
}

# Match Unicode digits
my $number = "٢٤"; # Arabic-Indic for "24"
if ($number =~ /\p{Nd}+/) {
    print "The string contains digits.\n";
}
    

Perl regex Unicode properties text processing programming languages internationalization