Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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.


Comment on Re: What are pack/unpack used for?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2014-12-26 04:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (165 votes), past polls