Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: problems packing 8 bit data

by Kageneko (Scribe)
on Aug 15, 2003 at 17:18 UTC ( [id://284208]=note: print w/replies, xml ) Need Help??


in reply to problems packing 8 bit data

I don't quite know how to help with your problems, but it seems to be fixed in a later snapshot of 5.8.1:
> /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
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 $/.

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
    No, c2 80 is the UTF-8 encoding of the value 0x80.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://284208]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (1)
As of 2024-04-23 16:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found