Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Maybe you could write a Text::Pipe [cpan.org] plugin that does what you need? See this test file [perl.org] for an example using syntactic sugar of how text pipes are stackable.

    • The API in Text::Pipe is nice. However, the module addresses a much simplified problem to begin with. There are no cases like connecting the stdout from one process to the stdin of another process but fd3 of the first process to the stdin of a third – to cater to such use cases, an Unix piping module will need a solid object model for use by desugared code doing more complicated things. Text::Pipe’s design does not fit this bill.

      Then there is also the need to provide amenities for real IPC stuff like picking up exit statuses. I am not sure exactly what support is needed for these things in a convenient Unix piping API. Depending on the shape, Text::Pipe’s design may not be adequate. I can’t say yet.

      Text::Pipe would be a good wrapper for something simplified, at the level of IPC::Filter, though.