I've read suggestions mentioned above, and it's all rigt, but following the philosophy of Perl - you can do one thing in more than one way :-)
You can try to set all the parts in 1 file... Fork them and gather the results... There are also
some wired solutions (unsorted):
- sockets
- files with flock()
- pipes
If you use sockets, then you write a server for them and the children are the clients that just send the results.
Files with
flock() are also some solution - in this case you have to read only from one handle.
Pipes - almost the same as the sockets, only the loop differs and the data model is slightly different. When using sockets and pipes you would probably use some loop to skimm through open handles and check if there is something to read.
If this script is to be simple as far as possible, i would use files with
flock() i think.
Greetz, Tom.
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.