After your program has opened SENDMAIL, open it again in the debugger to 
wherever you want (e.g., open SENDMAIL, '>&STDOUT').  Since it's a 
bareword filehandle, you'll be reopening the same one.

On Thu, 07 Jun 2012 12:59:20 -0700, mstep wrote:
> Yes the Filehandle is opened for writing. Is there any means to look
> inside? How to redirect the content of SENDMAIL in the debugger?
>
> Am Donnerstag, 7. Juni 2012 06:19:43 UTC+2 schrieb Peter Scott:
>> On Mon, 04 Jun 2012 10:37:35 -0700, Marek wrote:
>> 
>> > Could somebody please tell me, how can I see into a FILEHANDLE in
>> > Perl debugger? I tried with > x <SENDMAIL> but I get only "empty
>> > array".
>> 
>> That filehandle is open for *output* in your program!  What is it you
>> want to examine?
>> 
>> --
>> Peter Scott
>> http://www.perlmedic.com/     http://www.perldebugged.com/
>> http://www.informit.com/store/product.aspx?isbn=0137001274
>> http://www.oreillyschool.com/certificates/perl-programming.php





-- 
Peter Scott
http://www.perlmedic.com/     http://www.perldebugged.com/
http://www.informit.com/store/product.aspx?isbn=0137001274
http://www.oreillyschool.com/certificates/perl-programming.php

-- 
To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org
For additional commands, e-mail: beginners-cgi-h...@perl.org
http://learn.perl.org/


Reply via email to