in reply to passing string to stdin on exec-command

open my $fh => "| cmd -option" or die $!; print $fh $str; close $fh or die $!;

Abigail