You have 3 perl programs...
first one...reads the data and decides which program to send the data to.
second program...does the apple transformations and the apple database stuff
third program...does the banana transformations and the banana database stuff.
Why break it up like this you ask?? Well, you don't have to, but where I am going with this is that the first program can fork off a process and call either the second or third program..and assuming your database can handle multiple transactions at once, you shouldn't be in any trouble from that point. Plus this method would allow you to work over multiple processors on the server to get the maximum performance out of it. Also, from a maintability standpoint, you know you have an apple program and a banana program, so if you have to change the apple logic, you don't have to sift through extraneous code looking for it.
Just a thought.
later.
krazken
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.