Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Detecting transpositions

by Abigail-II (Bishop)
on Aug 08, 2003 at 09:32 UTC ( [id://282142]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Detecting transpositions
in thread Detecting transpositions

Would it be possible for the product of $f ^ $s to contain a "1" and hence pollute your $_ string?

Yes, but no. It could certainly be possible that the XORred string contains a character "1". But this is ok, the tr/\x00/1/c turns anything that is not "\x00" into a "1" anyway - after the tr, the string will only contain "\x00" and "1" characters.

Abigail

Replies are listed 'Best First'.
Re: Re: Detecting transpositions
by Jonathan (Curate) on Aug 08, 2003 at 09:58 UTC
    Oh of course they are. Looks like I'm being even more stupid than usual

    Sorry to have troubled you

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://282142]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 02:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found