What did you think it would do?
pack turns a list of values into a string according to a specific format. If you want to interact with something else which expects values in a specific format (a system call, a foreign function, a binary protocol), pack is your tool. If you want to use less memory, you need something else.
Improve your skills with Modern Perl: the free book.
In reply to Re^3: Why is the size even bigger after pack?
by chromatic
in thread Why is the size even bigger after pack?
by PerlOnTheWay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |