pboin has asked for the wisdom of the Perl Monks concerning the following question:
I want to write a good module, one that does its job well, and will serve me for a long time. I'm going to call it from at least two programs now, and from who knows how many in the future...
What it needs to do is examine a file to see if it has ASA (mainframe) carriage control. If it does not have it, insert the carriage control and return, no big deal.
I'm OK with the process at the bits-n-bytes level, but I always struggle with abstraction. Do I want to pass my module:
And more importantly, why?
This is where I really wish I had some formal CS training. What might a good monk read regarding design (esp. in the context of perl) verses implementation details?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Ideal way to pass a file to a module
by Old_Gray_Bear (Bishop) on Apr 12, 2004 at 19:41 UTC | |
by pboin (Deacon) on Apr 12, 2004 at 20:02 UTC | |
|
Re: Ideal way to pass a file to a module
by mirod (Canon) on Apr 12, 2004 at 19:26 UTC | |
by simonm (Vicar) on Apr 12, 2004 at 19:51 UTC | |
|
Re: Ideal way to pass a file to a module
by BrowserUk (Patriarch) on Apr 12, 2004 at 21:53 UTC |