diotalevi has asked for the wisdom of the Perl Monks concerning the following question:
\pP Match P, named property. Use \p{Prop} for longer names.What the heck is a named property? I grepped the 5.8.0 and 5.8.1-RC2 source and found no mention of this except for the one line in perlre. The following snippet indicates it has something to do with unicode but there's no other reference to this.perl -Mre=debug -e 'qr/\p{something}/'
Produces:
Freeing REx: `","' Compiling REx `\p{something}' size 12 Got 100 bytes for offset annotations. first at 1 1: ANYOF[{unicode}+utf8::something](12) 12: END(0) stclass `ANYOF[{unicode}+utf8::something]' minlen 1 Offsets: [12] 0[11] 0[0] 0[0] 0[0] 0[0] 0[0] 0[0] 0[0] 0[0] 0[0] 0[0] 14[0] Omitting $` $& $' support. EXECUTING... Freeing REx: `"\\p{something}"'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: What is a 'named property'? (perlre)
by jeffa (Bishop) on Jul 15, 2003 at 16:31 UTC | |
|
Re: What is a 'named property'? (perlre)
by broquaint (Abbot) on Jul 15, 2003 at 16:32 UTC | |
by diotalevi (Canon) on Jul 15, 2003 at 16:35 UTC |