Just another Perl shrine | |
PerlMonks |
Re: What are pack/unpack used for?by Utilitarian (Vicar) |
on Jun 09, 2012 at 15:05 UTC ( [id://975308]=note: print w/replies, xml ) | Need Help?? |
Wow, they are used for so many things, to get a binary representation of a number, to parse binary data out of a file format, to parse network packets... the list is pretty much endless.
Could I suggest you buy the Perl Cookbook and check them out in the index... or search for them on this site, to see a range of their uses in converting between data formats.
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|