BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
Is there any other way of interpreting this error:
c:\test>junk0 '/' must follow a numeric type in unpack at c:\test\junk0.pl line 28, +<FILE> chunk 10.
than perl thinks 'v' isn't a numeric type? The line 28 is:
my $s2 = unpack 'v/A*', substr $$ref2, $p2, $n2;
I cannot reproduce it in simple tests:
$x = pack 'v/A*', 'x'x100;; print unpack 'v/A*', $x;; xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
And the code has to run for a couple of hours before the problem arises. (But it does happen the first time this line of code is executed.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error: '/' must follow a numeric type in unpack
by jethro (Monsignor) on Oct 29, 2008 at 14:43 UTC | |
by BrowserUk (Patriarch) on Oct 29, 2008 at 15:05 UTC | |
by jethro (Monsignor) on Oct 29, 2008 at 15:17 UTC |