lightoverhead has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks
I have a question regarding the pack function.
$string = pack("H*",15); print "$string\n"; #prints some weird symbol print unpack("H*",$string),"\n"; #prints 15
If I try to print the packed string, what would I expect? How does this packed string associate with the value to be packed?
Thank you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print packed string
by Grimy (Pilgrim) on Jun 01, 2013 at 01:25 UTC | |
by lightoverhead (Pilgrim) on Jun 01, 2013 at 15:07 UTC | |
|
Re: print packed string
by johngg (Canon) on May 31, 2013 at 23:18 UTC | |
|
Re: print packed string
by toolic (Bishop) on May 31, 2013 at 21:08 UTC |