Re: pack/unpack question

2006-01-22 Thread Beau E. Cox
Thanks - my stupid error. On Sunday 22 January 2006 12:58 am, Xavier Noria wrote: > Beau E. Cox wrote: > > I really thought I understood pack/unpack, > > but this has me stumped. I can't find anything to > > explain the operation of the following script > > in the documentation: > > > > use

Re: pack/unpack question

2006-01-22 Thread Xavier Noria
Beau E. Cox wrote: > I really thought I understood pack/unpack, > but this has me stumped. I can't find anything to > explain the operation of the following script > in the documentation: > > use strict; > use warnings; > > my $buffer = pack( "NN", 22, 0 ); > printf "buffer length = %s\n", length

pack/unpack question

2006-01-22 Thread Beau E. Cox
Hi - I really thought I understood pack/unpack, but this has me stumped. I can't find anything to explain the operation of the following script in the documentation: use strict; use warnings; my $buffer = pack( "NN", 22, 0 ); printf "buffer length = %s\n", length $buffer; print "buffer ", j