Podius::IPC - useful interprocess communication related functions
use Podius::IPC qw(run_command run_filter);
my $output1 = run_command("grep /root /etc/passwd");
my $output2 = run_command([ 'grep', '/root', '/etc/passwd' ]);
# should print lines for users "root", "operator" print $output1, $output2;
my $output3 = run_filter("tr st ST", "something short");
my $output4 = run_filter([qw(tr st ST)], "something short");
# should print "SomeThing ShorT" print $output3, "\n", $output4, "\n";
This module provides portable useful functions. For example, run_filter function tries to use the IPC::Open2 manpage that is shipped with perl, however the IPC::Open2 manpage does not work correctly under mod_perl, so this case is detected and the IPC::Run manpage is used instead.
run_command($cmd)run_command(\@cmd)On any problem the warning is written and undef is returned.
On any problem the warning is written and undef is returned.