Mikhailoh has asked for the wisdom of the Perl Monks concerning the following question:
I'm an old Assembler and COBOL programmer. I have need to write some flat file conversion programs. I'll be reading one 7KB record at a time and parsing it into multiple records to be written, along with reformatting a few fields and generating a few more.
Just on what I have described here, do ou think perl is a good tool for the job?
Thanks.
Update
I need to write some conversion programs that: * Read a large record, about 7KB * Parse the data into multiple record formats and write them out * Generate record type fields 'a '1' record is patient info, a '2' is lab sample data, a '3' is diagnosis information.. at the end of each record is a 0 or a 1 indicating whether or not it is the last one of its type for this patient, so I have to keep track of where I am in the record arrays and whether or not I have a new patient in a record or a new test for the same one) * Reformat several data fields, usually stripping out some characters. My question to all of you would have to be is perl a good choice for this type of activity? It woudl be a perfect application for a COBOL program, but this facility has no COBOL compiler. Thanks
Material from duplicate node added as update and formating added by GrandFather
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: New to PERL - file format conversions to do
by runrig (Abbot) on Jun 07, 2006 at 21:52 UTC | |
|
Re: New to PERL - file format conversions to do
by roboticus (Chancellor) on Jun 07, 2006 at 22:41 UTC | |
|
Re: New to PERL - file format conversions to do
by Joost (Canon) on Jun 07, 2006 at 21:34 UTC | |
|
Re: (dup) Perl for flat file conversions?
by Joost (Canon) on Jun 07, 2006 at 21:52 UTC | |
by runrig (Abbot) on Jun 07, 2006 at 22:33 UTC | |
|
Re: New to PERL - file format conversions to do
by gellyfish (Monsignor) on Jun 07, 2006 at 21:31 UTC | |
|
Re: New to PERL - file format conversions to do
by dsheroh (Monsignor) on Jun 07, 2006 at 21:36 UTC | |
|
Re: (dup) Perl for flat file conversions?
by girarde (Hermit) on Jun 07, 2006 at 21:42 UTC | |
|
Re: (dup) Perl for flat file conversions?
by OfficeLinebacker (Chaplain) on Jun 07, 2006 at 21:41 UTC | |
|
Re: New to PERL - file format conversions to do
by kwaping (Priest) on Jun 07, 2006 at 23:13 UTC |