Let's say I am stuck on NT and have a perl script (first.pl) that 
calls a second perl script such as:

my $out = `second.pl 2>&1`;

that calls a command line tool (clt).  If in second.pl I use:

my $out = `clt 2>&1`;

The return value of clt is nonzero when I call it this way, but out 
does not contain any stderr which I assume is generated.  The stdout 
seems to be lost altogether, as I don't see it anywhere.  If I add 
the perl binary to the exec of second.pl in first.pl:

my $out = `perl second.pl 2>&1`;

Then in second.pl the clt returns 0 (so I don't know if the stderr 
is lost or not, since it would not be generated in this case).

Has anyone seen behavior like this on NT?  I have never seen this 
on Unix, only on Solaris.  I am sure I am doing something wrong.







-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to