The 2 major features I'm looking for are multiplexing (input stream can be converted into several output streams) and syntactic simplicity.
If by "multiplexing" you mean that a single input stream would be (selectively?) directed to some number of output file handles or separate sub-processes, I don't see a need for anything beyond the standard "open()" call. Open as many output file handles as you need, whether they refer to disk files or to processes (using open my $fh, '|-', "process", @args). (Update: this sounds to me like it might be "de-multiplexing" (demuxing for short), which is sort of the opposite of "multiplexing" (muxing).)
As for syntactic simplicity, you are either going to be doing a simple loop over file handles for each input record (print to each output in turn), or else you'll put the file handles into a "dispatch table" hash, and print to the ones you want according to whatever decision needs to be made on a record-by-record basis.
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.