If you use the following: printf "%x\n", $_;
where $_ equals 3385906118 it will print C9D0D3C6 or are you needing the data to be in true binary form, then pack may be what you need. Wags ;) -----Original Message----- From: Alex Demmler [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 05, 2003 05:34 To: [EMAIL PROTECTED] Subject: How to write hex values into a file Hi folks! How do I write hex Values direct into a file (like a hex editor does)? I have tested some stuff with "printf" but it did not worked (as I expected or I did wrong). Example: I need to write "C9D0D3C6" as header in front of my files. Thanks a lot Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ********************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. **************************************************************** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]