Subject: Time to pack
From: Ovid <[EMAIL PROTECTED]>
Date: Thu, 28 Sep 2006 07:23:37 -0700 (PDT)
}ok my $data = pack('u', @data), 'packing data should succeed';
perldoc -f pack:
* Each letter may optionally be followed by a number giv-
[re-send for the mailing list]
Subject: Time to pack
From: Ovid <[EMAIL PROTECTED]>
Date: Thu, 28 Sep 2006 07:23:37 -0700 (PDT)
}ok my $data = pack('u', @data), 'packing data should succeed';
perldoc -f pack:
* Each letter may optionally b
From: jerry gay <[EMAIL PROTECTED]>
> your pack template is one item long. try C<'u*'> instead.
Still fails.
use Test::More 'no_plan';
use Test::Differences;
my @data = qw(foo bar);
ok my $data = pack('u*', @data), 'packing data should succeed';
ok my @new_data = unpack('u*'
On 9/28/06, Ovid <[EMAIL PROTECTED]> wrote:
Can someone tell me why this test fails?
your pack template is one item long. try C<'u*'> instead.
~jerry
Can someone tell me why this test fails?
#!/usr/bin/perl -l
use strict;
use warnings;
use Test::More 'no_plan';
use Test::Differences;
use Data::Dumper;
my @data = qw(foo bar);
ok my $data = pack('u', @data), 'packing data should succeed';
ok my @new_data = un