open DH, '-|', ... # this is the list form of pipe-open #### my $cmd = "ct-energy -s $suffix ${prefix}.ct"; open my $dh, "$cmd |" or die "Can't launch [$cmd]: $! / $?"; while( <$dh>) { ... };