develooper Front page | perl.perl5.porters | Postings from October 2015

What should 'qr/\p{pkg::L}/ ' do?

Thread Next
From:
Karl Williamson
Date:
October 8, 2015 14:58
Subject:
What should 'qr/\p{pkg::L}/ ' do?
Message ID:
5616848F.3090203@khwilliamson.com
Currently it evaluates to the Unicode property 'Letter'.

But I think that is the wrong thing to do.

The pkg seems to me to want to force this into a user-defined property. 
  Recall that by defining a subroutine, a user can create their own 
properties.  The catch is that their names have to begin with 'In' or 
'Is'.  Therefore, I think that this should be a compile- or run-time 
failure that the property pkg::L is not found.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About