- or download this
s/(..)/chr(hex($1))/ge; # convert 0x77 0x00 -> w^@
- or download this
s/(....)/chr(hex($1))/ge # convert 0x7700 -> ç\234\200
- or download this
# stolen from Data::Dumper and tweaked.. ;-)
...
Creator -> Writer
Producer -> OpenOffice.org 2.0
Title -> COMPETITIVE SAFARI
- or download this
sub narrow_char {
$_[0] =~ s/(.)/chr(ord($1)>>8)/eg
...
$_[0];
}