Re: Pipe print output into shell in debugger

2008-07-28 Thread Marek
On Jul 28, 1:27 am, [EMAIL PROTECTED] (Richard Lee) wrote:


 I am sure there are other ways to do this but I always wonder how to get
 this done.
 Many research and I found that I could have |  (pipe) precede your
 command and output will go to your pager.
 I am just not sure how to change the pager on my system(mine is less,
 and if you can change to vi, you should be able to save it).

 Let me know if you are able to change your pager.. (I am not sure if
 pager they mean editor or something else in your environment, I use bash ).

Thank you Richard for your reply!

Your suggestion does not work :-( Probably I did not understand you? I
am working with tcsh on Macintosh and a little example of my attempts
to apply your suggestion are looking as follows:


marekste% perl -d excel_autorech.pl

Loading DB routines from perl5db.pl version 1.3
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(excel_autorech.pl:38):   my ( $start_day, $start_month, $year )
=
main::(excel_autorech.pl:39): ( 14, 7, 2008 );#without leading
0 please!
DB1 s
main::(excel_autorech.pl:40):   my @last_numbers = ( 56993,0,
77265,2, 3464, 2638, 84,1 );
DB1 c 287
main::(excel_autorech.pl:287):  print OUT \n x ( 29 - $last_row );
DB2 |
syntax error at (eval 42)[/usr/local/lib/perl5/5.10.0/perl5db.pl:638]
line 2, near ;
|

DB2 | print OUT \n x ( 29 - $last_row );
DB3 print OUT \n x ( 29 - $last_row ); |
syntax error at (eval 44)[/usr/local/lib/perl5/5.10.0/perl5db.pl:638]
line 2, near ; |

DB4 print OUT \n x ( 29 - $last_row ); | more
syntax error at (eval 49)[/usr/local/lib/perl5/5.10.0/perl5db.pl:638]
line 2, near ; |

Did I understand something wrong?


best greetings from Munich


marek


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




Pipe print output into shell in debugger

2008-07-27 Thread Marek
Hello all,


while being in the debugger, how do I pipe all printings going to a
OUTputfile like:

print OUT text text text;

into the shell?

I read perldebug and perldebguts, but probably I just overread it?


Thank you for your help



marek


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




Re: Pipe print output into shell in debugger

2008-07-27 Thread Richard Lee

Marek wrote:

Hello all,


while being in the debugger, how do I pipe all printings going to a
OUTputfile like:

print OUT text text text;

into the shell?

I read perldebug and perldebguts, but probably I just overread it?


Thank you for your help



marek


  
I am sure there are other ways to do this but I always wonder how to get 
this done.
Many research and I found that I could have |  (pipe) precede your 
command and output will go to your pager.
I am just not sure how to change the pager on my system(mine is less, 
and if you can change to vi, you should be able to save it).


Let me know if you are able to change your pager.. (I am not sure if 
pager they mean editor or something else in your environment, I use bash ).


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