Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://799623]
help
Chatterbox?
[arunks]: do you have any sample code .please share it. am looking for before opening excel file prompt should ask for password to open the excel file.
[marto]: which part don't you know how to do?
[marto]: oh
[Corion]: arunks: Maybe How do I make password prompts not echo back the user?? Or simply read it from STDIN.
[Corion]: arunks: Please do not ask us to write your program. You have to write your program yourself.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2017-01-20 14:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.