D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] FWD: One Operating System



On Tue, Jan 22, 2002 at 12:42:39AM +0000, Neil Stone wrote:

496620796F752063616E207265616420746869732C20796F752063616E2072656164204865780A


You have waaaay too mch spare time on your hands.....

Or I can program quickly :)

-- enhex

#!/usr/bin/perl

$w = "If you can read this, you can read Hex.";

map {printf('%02X',ord($_))} split(//,$w);

print "\n";

-- dehex

#!/usr/bin/perl

{ local $/; $_ = <DATA> }

s/\n//g;

print chr(hex($1)) while /(\w\w)/g;

__DATA__
4F6E65204F5320746F2072756C65207468656D20616C6C2C204F6E65204F5320746F
2066696E64207468656D2C0A4F6E65204F5320746F206272696E67207468656D2061
6C6C20616E6420696E20746865206461726B6E6573732062696E64207468656D0A



Steve


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly