Perl-Sensitive Sunglasses | |
PerlMonks |
Re: What are pack/unpack used for?by ikegami (Patriarch) |
on Jun 11, 2012 at 06:10 UTC ( [id://975501]=note: print w/replies, xml ) | Need Help?? |
Perl scalars cannot be stored or communicated; they are confined to a Perl interpreter instance. The values they contain must be serialised, which is to say converted to a stream of bytes, in order to do so. This is pack's primary purpose. unpack is used to do the inverse, namely deserialising, which is to say converting sequences of bytes into scalars.
In Section
Seekers of Perl Wisdom
|
|