Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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.


Comment on Re: Recreating a binary file from hex representation
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2015-07-05 10:33 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 (61 votes), past polls