in reply to unpack 'C/a*' and context weirdness
With perl 5.6.1, I get:
With perl 5.8.0, I get:$ perl -le 'print scalar unpack "C/a*", pack "C/a*", "Test"' 4
$ perl -le 'print scalar unpack "C/a*", pack "C/a*", "Test"' Test
Update: The pack documentation for both versions state "The length-item is not returned explicitly from unpack.". So it looks like the 5.6.1 version is wrong.
--
John.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: unpack 'C/a*' and context weirdness
by BrowserUk (Patriarch) on Feb 14, 2003 at 23:28 UTC | |
by jasonk (Parson) on Feb 15, 2003 at 15:40 UTC | |
by BrowserUk (Patriarch) on Feb 15, 2003 at 15:55 UTC |