Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: strings to number and XOR

by JavaFan (Canon)
on Oct 07, 2009 at 00:40 UTC ( #799623=note: print w/ replies, xml ) Need Help??


in reply to strings to number and XOR

Do you expect 0x3ba3 because 0x3ba3 == 0x7468 ^ 0x4fcb? However, unpack "H*", "th" equals 7468 == 0x1d2c.

And I don't understand the purpose of your split. Wouldn't @array = $msg =~ /(..)/g be much handier?


Comment on Re: strings to number and XOR
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2015-07-04 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls