Y
Yakov
Let's say I create binary strings using pack() or like this:
sub CreateEightByteString { return $_[0]; }
$a = CreateEightByteString("\301" x 8);
$b = CreateEightByteString("\277" x 8);
, and I need to ensure that comparison (lt, gt) of those strings
not depend on locale and not be utf-8 interpreted.
How can I "label" thise string "raw binary" in CreateEightByteString
so that any subsequent comparison be as raw binary 8 bytes,
independent on program's locale ?
Y.L.
sub CreateEightByteString { return $_[0]; }
$a = CreateEightByteString("\301" x 8);
$b = CreateEightByteString("\277" x 8);
, and I need to ensure that comparison (lt, gt) of those strings
not depend on locale and not be utf-8 interpreted.
How can I "label" thise string "raw binary" in CreateEightByteString
so that any subsequent comparison be as raw binary 8 bytes,
independent on program's locale ?
Y.L.