> I am trying to convert a file into hex from text > with a view to doing some manipulation before > turning it back to text.
One has to ask: WHY??? (Unless using tools that already exist) Perl can handle both text and binary information, and you can do all your binary manipulations as if you were manipulating strings. use byte; #Perl 5.6 and greater - I think E.g. $data =~ s/^\x41/\x42/; will replace the first byte (an ASCII 'A') into (an ASCII 'B'). For more information type: perldoc byte Which I hope works :) Jonathan Paton __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]