I can't seem to capture any output when I run perl scripts under Cygwin.
1. Launch ue from cygwin shell
2. I define a specific cygwin 'perl' with:
Command line: C:/cygwin/bin/perl %F
Working Directory: %P
Create new file: Yes
Capture output: Yes
Show DOS box: Yes
3. Use the alternate output capture option
4. Run the following simple perl script:
my @dirs = glob "*.*";
open OUT , "> ./out";
print STDOUT "~~ Arrghh! @dirs ~~\n";
print OUT "~~ Arrghh! @dirs ~~\n";
open OUT , "< ./out";
The './out' file gets created OK and has the appropriate output. However no output gets captured from the "print STDOUT ..." line.
If I use ActiveState perl & don't use alternate capture the output *does* get captured.
I've configured a simple command that uses the cygwin version of 'ls'. Output is captured.
It appears that there is some problem with the collection of the stdout from a perl script.