Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: What are pack/unpack used for?

by DrHyde (Prior)
on Jun 11, 2012 at 11:10 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-24 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found