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

Re: regex character ranges on EBCDIC

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
February 23, 2001 12:59
Subject:
Re: regex character ranges on EBCDIC
Message ID:
20010223145922.Z21295@chaos.wustl.edu
On Fri, Feb 23, 2001 at 01:02:07PM -0800, Peter Prymmer wrote:
> 
> 
> On Fri, 23 Feb 2001, Jarkko Hietaniemi wrote:
> 
> > > > >  $ uname -a
> > > > >  OS/390 LPR28 08.00 02 9672
> > > > >  $ perl -e '$_=qq/\x8E/; print/[\x89-\x91]/, q/,/ ,tr/\x89-\x91//d'
> > > > >  ,0$
> > > > 
> > > > > (that was perl 5.005_03 FWIW)
> > > > 
> > > > Well it means that character ranges and even transliterations
> > > > are essentially broken when you try to use them for working on
> > > > binary data.
> > > 
> > > Yes it does.  This BTW looks like a good candidate for a regression test.
> > 
> > What does the thing output for you in OS/390 using bleadperl?
> 
> I wasn't able to answer that right away since today was declared LPAR
> switch day by our sys admins, but I now have a 8892 kit rebuilt on R2.8 (a
> bit later vinatage than the 2.5 I was reporting on before) and here is
> the result:
> 
>  $ perl -e '$_=qq/\x8E/; print/[\x89-\x91]/, q/,/ ,tr/\x89-\x91//d'
>  ,0$
> 
> basically the same as with 5.005_03.  Were you expecting otherwise?

More like wishfully thinking.

> Peter Prymmer
> 

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | 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