On 7/12/06, Gavin Bowlby <[EMAIL PROTECTED]> wrote:

bash-2.05b$ cat test.pl
#!/usr/bin/perl

$x = 1;
print "x:$x\n";

bash-2.05b$ perl -d test.pl | tee xxx 2>&1 > yyy

Hmmm.

You know, when posted previously I guess I should have stated that I
had not yet gotten it to work myself but posted anyways kind of hoping
you might be able to.

Also I looked at the PerlDebug man page a few times while thinking
about this and I keep returning to this statement:

<PerlDebug>The "DB::OUT" filehandle is opened to /dev/tty, regardless
of where STDOUT may be redirected to.</PerlDebug>

To me this implies it should be possible to capture it using something
like Expect (expect.nist.gov) -- but I simply have not had time to
delve that deeply into it.

Besides, and maybe I'm making a leap here, I have to think that it
isn't possible -- considering none of the Unix gurus have chimed in
about it.

Sorry.
--
WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to