in reply to Re^2: Clarity in parsing fixed length data.
in thread Clarity in parsing fixed length data.
That's my opinion. Even if the function is simple, I still wouldn't copy it over and over, because I believe it's a distraction from the rest of the code. If you're going to go this way, stuff the function in in a module called OurCompany::FixedLengthUtils or something, and then no one has to think about how it works, they can just use it, or look up the docs for it.
And, I would probably create a separate module/class for each format especially if you'll be reusing the same formats in different scripts (which Parse-FixedLength has instructions on doing -- disclaimer: I'm the author :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Clarity in parsing fixed length data.
by rodion (Chaplain) on Aug 13, 2006 at 11:49 UTC | |
by runrig (Abbot) on Aug 16, 2006 at 19:19 UTC |