I have been using the binmode and it works
good at printing hex out from the buffer
but when i try to put hex in it doesnt work?
How can I use perl to dump hex code into
a file with out the lengthy debug hell that awaits
all failed attempts ....
i want to put this
CODE
6678689887a8b7baba9c53a548c6776c78a6834c99 2 3d 4
76789e95e98a9b8baba5c63a649c7887c89a7363c5 5 1c 2
a56789495998a9b883ba5c63a549c7887c89a7933c 2 ad 6
c66784dac65a9bac9c8cb6573b74a5899859ab8373 3 1b 4
d67789abdb7bbacb3a373c7685c84b59aa96abc955 4 7c 8
4567759aeb67bbac73a3c4c2685d87d69aa96abce5 1 1d 3
75567789abab7bbacb3a3c3c7685c84b69ae96abc9 8 84 10
into the D:/testing.dat so that when i look at debug
it looks just like that !
heres what I have tried
CODE
open(FILE, ">D:/testing.dat");
$_ = select(FILE);
binmode(FILE);
while (this) { printstuff }
close FILE;
CODE
open(FILE, ">D:/testing.dat");
$_ = select(FILE);
binmode(FILE, ":raw");
while (this) { printstuff }
close FILE;
that prints it to the file but not correctly...
it doesn't put the hex in like you get from
the output binmode!
do I have to format it and use a buffer to put into the
file ... and how could i do that correctly
i haven't seen any thing like that
and I have about 30 perl books!
please help!
This post has been edited by evolivid: 28 Jun, 2009 - 08:08 PM