Coderifous
Programmer
Hey all,
I have a C++ prog that parses a specific data file, but am trying to write a perl script to perform the same function. For portability reasons.
Basically, the fscanf() function is used to read the data, and I just need to translate the fscanf() template characters, over to perls unpack(). That's my current guess anyways.
Included are: %c %s %ld %d
I do have "field positions and widths" so that's not an issue.
Anyone know how to translate this from C++ to perl?
Thanks for the help,
--jim
I have a C++ prog that parses a specific data file, but am trying to write a perl script to perform the same function. For portability reasons.
Basically, the fscanf() function is used to read the data, and I just need to translate the fscanf() template characters, over to perls unpack(). That's my current guess anyways.
Included are: %c %s %ld %d
I do have "field positions and widths" so that's not an issue.
Anyone know how to translate this from C++ to perl?
Thanks for the help,
--jim