develooper Front page | perl.perl5.porters | Postings from April 2007

Re: perlrebackslash

Thread Previous | Thread Next
April 12, 2007 14:44
Re: perlrebackslash
Message ID:
On 4/12/07, Juerd Waalboer <> wrote:
> Glenn Linderman skribis 2007-04-12 12:51 (-0700):
> > >C<\C> always matches a single octet, even if the source string is encoded
> > >in UTF-8 format, and the character to be matched is a multi-octed
> > >character.
> > >C<\C> is new in perl5.10.
> > >Mnemonic: oI<C>tet.
> > multi-octet ?  rather than multi-octed ?
> I'd rather see \C removed completely. It breaks any string model. Both
> the text/binary one, and the fully-abstracted one.
> Can anyone come up with a acceptable use of \C?

Not really, at a stretch maybe to deal with malformed utf8 sequences somehow.

But it doesnt make a lot of sense to me so I'd be ok with seeing it
deprecated and then removed.


perl -Mre=debug -e "/just|another|perl|hacker/"

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