jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
But now I get an error message:open IN,"<$file" ; binmode IN,":utf8"; local $/ ; $str = <IN> ; ($a, $b, $c, $d) = unpack("x5, A2, A10, A1 A2", $str) ;
After these characters unpack unpacks the wrong characters.....Wide character in print at ./script.pl line 8.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Wide character error: unpack vs substr
by BrowserUk (Patriarch) on Mar 31, 2006 at 19:56 UTC | |
by Anonymous Monk on Apr 05, 2006 at 07:01 UTC | |
by BrowserUk (Patriarch) on Apr 05, 2006 at 16:27 UTC |