Hello,
What is the best way to convert a numeric cobol format S9(09)V9(04) in a more readable way.
For example:
000001000000} will be -1000.0000 000001000000{ will be 1000.0000
It works with substr and =~, but may be there is a module or another better way.
--As for the rest, it is mine.
Well, it seems the module Convert::IBM390 may be able to do this, but substr would probably be enough.
Actually, Convert::IBM390 seems to be a little too specific for this: it would expect the file to be mainframe packed. A more general COBOL reading module might be nice; it would help people stuck maintaining that beast work in a language that is actually fun to work in.
Daniel T. Staal
--------------------------------------------------------------- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. ---------------------------------------------------------------
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>