in reply to Program to convert Numeric text file to Packed decimal file

Yes! Perl can do anything that you can do in C or even ASM as far as bit manipulation goes...which means anything is possible!

So this comes down to what you have "in" in terms of "bits" and what you want "out" in terms of "bits".

There are some very cool Perl functions: pack and unpack that can do a magnificent job of translation.

You will have to understand the difference between "little Endian" and "big Endian". These terms may seem strange as well as "binary coded decimal", or BCD.

I have no idea what "packed decimal" means to you. You will have to post some input and desired output.

  • Comment on Re: Program to convert Numeric text file to Packed decimal file