in reply to does anyone else use Parse::FixedLength;?
Thank you for the bug report and yes, in light of Dave Cross' "Data Munging with Perl", a highly useful book, this module should be re-written to use pack/unpack.
But if fixed data formats are your need, then I recommend becoming friends with Perl's built-in utilities for that, tools like pack and unpack. Also davorg has a book about this kind of data manipulation which I have not read, but a lot of people seem to like.The purpose of this module is to decouple the description of the information parsed from the actual process of parsing it. Pack/unpack are for the actual process of parsing. If the description and process are bound together, then it becomes more difficult for external parse description to be used at will.
for example, what if you wanted to have data entry operators enter a huge collection of field names and field widths? It is much easier for them to enter these sans Perl syntax.
Also, certain industry vendors do use fixed-length data. Valley Media, the fulfillment house for amazon.com, cdnow.com, and several other major .coms only receives (for this see Text::FixedLength) and transmits (for this see Parse::FixedLength) fixed length data. Their major competitor, global fulfillment, was using XML, but all of their high-techery did not save them from going out of business.
So, to summarize:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: Parse::FixedLength - better late than never (tilly read)
by tilly (Archbishop) on Jun 22, 2001 at 03:48 UTC | |
|
Re: Parse::FixedLength - better late than never (tilly read)
by davorg (Chancellor) on Jun 27, 2001 at 14:01 UTC | |
| |
|
Re: Parse::FixedLength - better late than never (tilly read)
by mikeB (Friar) on Jun 22, 2001 at 01:49 UTC | |
|
Re: Parse::FixedLength - better late than never (tilly read)
by runrig (Abbot) on Jun 22, 2001 at 08:42 UTC |