in reply to unpack and pack
$str = join ',', map {sprintf "%02x", $_} unpack 'C*', $value; # And back $str =~ s/,//g; $value = pack "H*", $str;
--
John.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unpack and pack
by anadem (Scribe) on Apr 28, 2005 at 18:16 UTC | |
|
Re^2: unpack and pack
by anadem (Scribe) on Apr 28, 2005 at 18:29 UTC |