Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Re: Detecting transpositions

by Jonathan (Curate)
on Aug 08, 2003 at 08:40 UTC ( #282137=note: print w/replies, xml ) Need Help??

in reply to Re: Detecting transpositions
in thread Detecting transpositions

Hey! Thats really elegant and instructive Abigail-II - but please forgive a stupid question...
Would it be possible for the product of $f ^ $s to contain a "1" and hence pollute your $_ string?

"To be admired must be the constant aim of ambition."
- Johnson

Replies are listed 'Best First'.
Re: Detecting transpositions
by Abigail-II (Bishop) on Aug 08, 2003 at 09:32 UTC
    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.


      Oh of course they are. Looks like I'm being even more stupid than usual

      Sorry to have troubled you

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://282137]
[Lady_Aleena]: choroba, the tables in that group of modules is from the World Builder's Guidebook, so I thought it best to add the name of the book to the name of the module.
[choroba]: oh, I see
[Lady_Aleena]: There is the RolePlaying:: WorldBuilding:: WorldBuildersGuide book suite and the RolePlaying:: WorldBuilding:: HighLevelCampaigns suite.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-05-24 22:30 GMT
Find Nodes?
    Voting Booth?