MikeM16 has asked for the wisdom of the Perl Monks concerning the following question:
Now when I open that file in a hex editor, I expect to see exactly what I typed into $data: ff 01 67. Instead I get:open FILE, ">output.dat"; $data = "\xff\x01\x67"; print FILE $data; close FILE;
I'm running this using perl 5.8.0 on redhat 8. Any help, this is driving me crazy?od -x output.dat 0000000 bfc3 6701 0000004
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hex string output
by BrowserUk (Patriarch) on Oct 08, 2003 at 04:33 UTC | |
by zengargoyle (Deacon) on Oct 08, 2003 at 04:41 UTC | |
by Anonymous Monk on Oct 08, 2003 at 19:42 UTC | |
|
Re: Hex string output
by davido (Cardinal) on Oct 08, 2003 at 04:19 UTC | |
|
Re: Hex string output
by Abigail-II (Bishop) on Oct 08, 2003 at 10:04 UTC | |
|
Re: Hex string output
by DrHyde (Prior) on Oct 08, 2003 at 08:47 UTC |