filter_add#

Run a command as a coprocess and filter the rest of the source through it.

Synopsis#

sub import {
    my ($self, @args) = @_;
    Filter::Util::Exec::filter_add($self, 'sh', '-c', "@args");
}

What you get back#

Nothing. The first argument is the calling module (unused); the command is looked up in PATH and gets the rest as its arguments. The filter reads the source from the line after the use that called the import.