Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Recreating a binary file from hex representation

by TedPride (Priest)
on Jul 07, 2006 at 16:10 UTC ( #559820=note: print w/replies, xml ) Need Help??

in reply to Recreating a binary file from hex representation

Or you could go the kloodge route and create a hex-to-character lookup:
@chars = (0..9, 'A'..'Z'); for (0..255) { $hex{$chars[int($_ / 16)].$chars[$_ % 16]} = chr($_); }
Just feed it two hex characters and it returns the regular string character.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://559820]
[enrgyxprt]: how do I delete a question
[Lotus1]: you can't but you can request to have it deleted.
[Lotus1]: you can edit it as long as you were logged in when you submitted it

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2017-01-17 13:15 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (156 votes). Check out past polls.