Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The output for pack("i", 171) is 1/2 and if I change pack("i", 172), output is 1/4 and for pack("i", 173) some special character.... please explain this function.$integer = pack("i", 171); $twoints = pack("i2", 103, 241);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Please explain the pack function
by Corion (Patriarch) on Apr 19, 2007 at 17:30 UTC | |
by Anonymous Monk on Apr 19, 2007 at 18:39 UTC | |
|
Re: Please explain the pack function
by BrowserUk (Patriarch) on Apr 19, 2007 at 18:06 UTC | |
by Anonymous Monk on Apr 19, 2007 at 18:44 UTC | |
|
Re: Please explain the pack function
by andye (Curate) on Apr 20, 2007 at 08:43 UTC |