develooper Front page | perl.perl5.porters | Postings from March 2001

use re 'asciir'; ???

Thread Next
Nick Ing-Simmons
March 28, 2001 04:24
use re 'asciir'; ???
Message ID:

I have just coined a new hints flag HINT_RE_ASCIIR to help out 
on EBCDIC. It causes "ranges" like [!-~] to be interpreted in 
ASCII/Unicode space. 

i.e. in C world:

      start = NATIVE_TO_ASCII('!');
      end   = NATIVE_TO_ASCII('~');  
      for (i = start; i <= end; i++)

Something like that is needed to avoid having to re-write 
MIME::QuotedPrint and similar things. Instead of a re-write one adds

use re 'asciir'; 

tr/// should probably honour same hint.

Vetos and/or name-change requests ASAP please...

Nick Ing-Simmons <>
Via, but not speaking for: Texas Instruments Ltd.

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