On Fri, Nov 30, 2001 at 04:41:04PM -0600, Smith, Laura J wrote: > I'm not sure how to ask this question since I am so new to this....but here > goes. I am just learning Perl and my co-worker gave me a Perl program to go > over and see how it looks. I was wondering if there is any way to have the > program print out line by line what it is doing so I could see exactly what > the program is doing as it is going through. Kind of like verbose mode in > shell scripting.
If you're running the program interactively, you can use the perl debugger, and turn on trace mode. perl -d foo.pl n::(foo.pl:4): my $i = 0; DB<1> t Trace = on DB<1> r ## runs foo.pl until completion Of course, this will generate a lot of output that isn't easily paged using more or less... HTH, Z. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]