my $pid = open my $cmd, "-|", 'theCommand parms' or die $!; #### my $pid = system 1, 'theCommand parms';