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*', $data), '... and unpacking it should 
succeed';
    eq_or_diff [EMAIL PROTECTED], [EMAIL PROTECTED],
        '... and it should survive the round-trip';

I've also tried all combinations of 'u' and 'u*' for both of those.

Cheers,
Ovid
 
-- 
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/





Reply via email to