develooper Front page | perl.perl5.porters | Postings from September 2012

[perl #90646] perlop doesn't document bitwise &, |, and ^ on Unicode strings

Thread Next
From:
James E Keenan via RT
Date:
September 20, 2012 19:01
Subject:
[perl #90646] perlop doesn't document bitwise &, |, and ^ on Unicode strings
Message ID:
rt-3.6.HEAD-11172-1348192880-1470.90646-15-0@perl.org
On Sun May 15 14:40:48 2011, tom christiansen wrote:
> The misplaced discussion in perlop on 3 out of the 4 bitwise operators'
> behaviour on "bitstrings" is insufficient.  It is suggesting things
> that are not true.  

Can you elaborate?

> 
> Two things need to happen:
> 
>     (1) That material needs to be next to the operators, 
> 	not someplace else.
> 
>     (2) It needs to explain that strings are not literal bitstrings 
> 	comprising literal bits but rather comprising logical characters.
> 
> 	% perl -le 'printf "%vX\n", "abc" ^ "\x{3b1}\x{1066}\x{11222}"'
> 	3D0.1004.11241
> 
> --tom

Better still, can you supply a patch?

Thank you very much.
Jim Keenan


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=90646

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