more useful options | |
PerlMonks |
Parsing data from a data feedby Apterigo (Scribe) |
on Jul 19, 2001 at 00:01 UTC ( [id://97866]=perlquestion: print w/replies, xml ) | Need Help?? |
Apterigo has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks, I have a question I have been kicking around for a few days, and I'm baffled. Here is my problem, I will try to explain the problem as indepth as I possible can. First off, I am reading data from a constant data stream, and therefore I need to parse the data as it codes through, byte by byte. The data comes in, in a form such as this: and on and on. The 0x00 is there to mean that each "string" is seperated by hex 00. What I am trying to do is read all the data from each "string" into one variable and stop reading when 0x00 is reached. Now, for some reason, I am having a heck of a time getting it to work. Here is my code (please note that this is only a portion, obviously):
Now, basically what happens is when reading if the code hits either 0 | , . - , it interprets this as hex 0x00 and terminates. Any insights? Thanks, Apterigo Edit ar0n 2001-07-18
Back to
Seekers of Perl Wisdom
|
|