in reply to Efficient and modular filtering
In other words, if you have several different kinds of inputs and outputs, and your modules already address each one separately, then the rest of the "scripting" can be done with the shell command line.perl -MInput::X -e 'print while($_=Input::X::read)' input.x | \ perl -MOutput::Y -pe '$_ = Output::Y::get_output( $_ ) > output.y
Maybe this would mean doing a little extra work to 'stingify' the intermediate data structure that is shared by the input and output modules. Maybe that would be worthwhile (or not).
|
|---|