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

RE: [perl #122853] Guarantee 0-9, A-Z, a-z character classes

Thread Previous | Thread Next
Ed Avis
October 30, 2014 07:19
RE: [perl #122853] Guarantee 0-9, A-Z, a-z character classes
Message ID:
I suggest that "Most of us don’t care whether our code runs on EBCDIC," is not the best way to frame the issue.
For application code this  may be true, but library code usually has to be written more cuatiously,
as you don't know where it will end up.  I am not saying that nonportable constructs should be disallowed,
but that it should be an explicit choice for the programmer to use them, where reasonably possible.

If deprecating [\N{U+04}-\x{09}] is not acceptable then just define it to treat both sides as Unicode.
That leaves \x{}-\x{} as the explicit way to request a native (nonportable) range, while everything else
will be the same on all platforms.

This email has been scanned by the Symantec Email service.
For more information please visit

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About