Re: Time to pack

2006-09-28 Thread Pete Krawczyk
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: Time to pack

2006-09-28 Thread Pete Krawczyk
[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

Re: Time to pack

2006-09-28 Thread Ovid
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*'

Re: Time to pack

2006-09-28 Thread jerry gay
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

Time to pack

2006-09-28 Thread Ovid
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