I am trying to convert a file into hex from text with a view to doing some 
manipulation before turning it back to text.

#! /usr/bin/perl -w

undef $/;
open(IN, "< file") || die "no on file";
   $file = <IN>;

print unpack('H*',"$file");

print "\n\nCONV TO TXT HERE\n\n";

print pack('H*',"$file");

print $file;


the hex conversation appears of but the return output from pack garbage (well not 
text).
I am shure its me missing something or not understanding any ideas ?

Reply via email to