Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: What are pack/unpack used for?

by DrHyde (Prior)
on Jun 11, 2012 at 11:10 UTC ( #975539=note: print w/replies, xml ) Need Help??

in reply to What are pack/unpack used for?

If you ever need to deal with binary data, or with fixed width records, then pack/unpack may be useful tools and should be considered.

That doesn't mean that they'll always be the *best* tool for the job as they have some annoying limitations and the documentation is somewhat, umm, opaque, but you should certainly consider them, and if you decide to use something else you should be able to justify it. Remember - TIMTOWTDI,BMOTAWMOTT,ESOTT (but most of them are wrong most of the time, essential some of the time).

For example, I mostly don't use them in Data::Hexdumper because I want to support 64 bit data on 32 bit platforms.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2018-06-23 23:58 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.