Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: pack/unpack binary file

by BrowserUk (Pope)
on Nov 29, 2012 at 22:58 UTC ( #1006372=note: print w/replies, xml ) Need Help??

in reply to pack/unpack binary file

I am unable to repack it to a bin file after I'm done with it

You aren't packing the output. You are sprintfing it to hex; which is just a text representation.

If you want the output (re)packed, use pack. (And don't forget to binmod your output file.)

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006372]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2018-02-25 00:38 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (312 votes). Check out past polls.