in reply to problems packing 8 bit data
I have a vague feeling that the 'c2' you are seeing is the list separator character. You might try setting $" = '' and see what happens. Also try $\ and $/.> /appl/cpc/devel/bin/perl -v This is perl, v5.8.1 built for PA-RISC2.0-thread-multi (with 1 registered patch, see perl -V for more detail) > /appl/cpc/devel/bin/perl -e '$a = pack("C*", 0x7f..0x81); for ( $i = + 0; $i < length($a); ++$i ) { print ord(substr($a, $i, 1)) . " " }; p +rint "\n"' 127 128 129
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: problems packing 8 bit data
by John M. Dlugosz (Monsignor) on Aug 15, 2003 at 19:09 UTC |