3 # $Header: op.pack,v 3.0 89/10/18 15:30:39 lwall Locked $
7 $format = "c2x5CCxsila6";
8 @ary = (1,-100,127,128,32767,12345,123456,"abcdef");
9 $foo = pack($format,@ary);
10 @ary2 = unpack($format,$foo);
12 print ($#ary == $#ary2 ? "ok 1\n" : "not ok 1\n");
15 $out2=join(':',@ary2);
16 print ($out1 eq $out2 ? "ok 2\n" : "not ok 2\n");
18 print ($foo =~ /def/ ? "ok 3\n" : "not ok 3\n");