http://www.perlmonks.org?node_id=900185


in reply to redirecting output from a system command to a text file

You are on Win and using bash redirection? I'm not familiar at all with the Win environment. As a stupid workaround I would just do
open my $input "./TVT.exe Tes...._235516.pdf|"; open my $output "test.txt" foreach (<$output>) { print $output,$_; }

Replies are listed 'Best First'.
Re^2: redirecting output from a system command to a text file
by mark4444az (Sexton) on Apr 19, 2011 at 18:46 UTC
    Hmm, the problem with that is i need to use the $a variable like this: open my $input "./TVT.exe $a|"; "string found where operator expected" there. I am runniing this on an xp machine using a cygwin console.
      Missing comma,
      open my $input,"TVT.exe Tes...._235516.pdf|" or die "$!";
      there might be an issue with ./