Re: debug perl package

2017-07-17 Thread Илья Рассадин
p://abc.pl> script and abc.pm <http://abc.pm> module . I want to understand when I execute abc.pl <http://abc.pl> hw to get to a debug state to identify what values does it take . Any GUI interface available to see the flow of events.

Re: debug perl package

2017-07-17 Thread David Mertens
e >> information. >> >> On Mon, Jul 17, 2017 at 3:48 PM Asad wrote: >> >>> Hi All , >>> >>> I am new to perl , I a have a abc.pl script and abc.pm module >>> . I want to understand when I execute abc.pl hw to get to a debug state >

Re: debug perl package

2017-07-17 Thread Andrew Solomon
t; I am new to perl , I a have a abc.pl script and abc.pm module >> . I want to understand when I execute abc.pl hw to get to a debug state >> to identify what values does it take . Any GUI interface available to see >> the flow of events. >> >> >> -- >

Re: debug perl package

2017-07-17 Thread Chas. Owens
, 2017 at 3:48 PM Asad wrote: > Hi All , > > I am new to perl , I a have a abc.pl script and abc.pm module . > I want to understand when I execute abc.pl hw to get to a debug state to > identify what values does it take . Any GUI interface available to see the &

debug perl package

2017-07-17 Thread Asad
Hi All , I am new to perl , I a have a abc.pl script and abc.pm module . I want to understand when I execute abc.pl hw to get to a debug state to identify what values does it take . Any GUI interface available to see the flow of events. -- Asad Hasan +91 9582111698

Re: Debug when script WILL NOT RUN

2015-02-05 Thread Harry Putnam
Shawn H Corey writes: > On Mon, 02 Feb 2015 11:54:12 -0500 > Harry Putnam wrote: > >> Are we even talking about the same program... Perl::Critic/perlcritic? >> >> For me, it just blows up with piles of help information when I use >> `-c': > > Use the -c option with `perl`, not `perlcritic`. > >

Re: Debug when script WILL NOT RUN

2015-02-02 Thread Shawn H Corey
On Mon, 02 Feb 2015 11:54:12 -0500 Harry Putnam wrote: > Are we even talking about the same program... Perl::Critic/perlcritic? > > For me, it just blows up with piles of help information when I use > `-c': Use the -c option with `perl`, not `perlcritic`. Perl::Critic is the Perl module that y

Re: Debug when script WILL NOT RUN

2015-02-02 Thread Harry Putnam
Shawn H Corey writes: > As Paul Johnson says, try it with the -c option first but note: > > -c causes Perl to check the syntax of the program and then exit > without executing it. Actually, it will execute and "BEGIN", > "UNITCHECK", or "CHECK" blocks and any "use" statements: these

Re: Debug when script WILL NOT RUN

2015-02-01 Thread Shawn H Corey
On Sun, 01 Feb 2015 18:07:18 -0500 Harry Putnam wrote: > Shawn H Corey writes: > > > On Sun, 01 Feb 2015 11:12:46 -0500 > > Harry Putnam wrote: > > > >> Shawn H Corey writes: > >> > >> > http://metacpan.org/pod/Perl::Critic > >> > >> Feeding my sorry script to the advertised webpage like

Re: Debug when script WILL NOT RUN

2015-02-01 Thread Harry Putnam
Shawn H Corey writes: > On Sun, 01 Feb 2015 11:12:46 -0500 > Harry Putnam wrote: > >> Shawn H Corey writes: >> >> > http://metacpan.org/pod/Perl::Critic >> >> Feeding my sorry script to the advertised webpage like by using the >> posted method of testing Perl::Critic with no installation. >

Re: Debug when script WILL NOT RUN

2015-02-01 Thread Harry Putnam
Paul Johnson writes: > On Sun, Feb 01, 2015 at 09:56:39AM -0500, Harry Putnam wrote: >> Robert Wohlfarth writes: >> >> > On Sat, Jan 31, 2015 at 3:58 PM, Harry Putnam wrote: >> > >> > I have about 100 lines or so inside a File::Find: > > You will likely help yourself out a lot with not only th

Re: Debug when script WILL NOT RUN

2015-02-01 Thread Paul Johnson
On Sun, Feb 01, 2015 at 09:56:39AM -0500, Harry Putnam wrote: > Robert Wohlfarth writes: > > > On Sat, Jan 31, 2015 at 3:58 PM, Harry Putnam wrote: > > > > I have about 100 lines or so inside a File::Find: You will likely help yourself out a lot with not only this problem but others that you do

Re: Debug when script WILL NOT RUN

2015-02-01 Thread Shawn H Corey
On Sun, 01 Feb 2015 11:12:46 -0500 Harry Putnam wrote: > Shawn H Corey writes: > > > http://metacpan.org/pod/Perl::Critic > > Feeding my sorry script to the advertised webpage like by using the > posted method of testing Perl::Critic with no installation. I have installed Perl::Critic on my

Re: Debug when script WILL NOT RUN

2015-02-01 Thread Harry Putnam
Shawn H Corey writes: > http://metacpan.org/pod/Perl::Critic Feeding my sorry script to the advertised webpage like by using the posted method of testing Perl::Critic with no installation. $> lwp-request -m POST http://perlcritic.com/perl/critic.pl < MyModule.pm $> wget -q -O - --post-file

Re: Debug when script WILL NOT RUN

2015-02-01 Thread Shlomi Fish
Hi Harry, On Sat, 31 Jan 2015 16:58:48 -0500 Harry Putnam wrote: > I've given myself a headache googling on how to debug a perl script > that does not run. > > Maybe `debug' is the wrong word... I'd love to know if there is a more > accurage one. > > I rea

Re: Debug when script WILL NOT RUN

2015-02-01 Thread Harry Putnam
Charles DeRykus writes: [...] > One good sleuthing tool is perltidy (perltidy.sourceforge.net) which is good > at unraveling a rat's nest of errors to tease out the culprit: > > For instance, you'd run: perltidy badlywrittenscript.pl and might get > an error diagnostic file that'd say something

Re: Debug when script WILL NOT RUN

2015-02-01 Thread Harry Putnam
Shawn H Corey writes: > On Sun, 1 Feb 2015 00:10:30 -0800 > Charles DeRykus wrote: > >> One good sleuthing tool is perltidy (perltidy.sourceforge.net) which >> is good at unraveling a rat's nest of errors to tease out the >> culprit: > > You can also download and install with `cpan`: [...] Lo

Re: Debug when script WILL NOT RUN

2015-02-01 Thread Harry Putnam
Robert Wohlfarth writes: > On Sat, Jan 31, 2015 at 3:58 PM, Harry Putnam wrote: > >> [snip...] > > I have about 100 lines or so inside a File::Find: >> >> find ( >> sub { >> }, $tdir; >>); >> [snip...] >> which looks like this ... snipped: >> >> [...] >> >> }

Re: Debug when script WILL NOT RUN

2015-02-01 Thread Shawn H Corey
On Sun, 1 Feb 2015 14:08:24 + (UTC) ThankGod Ebenezer wrote: > Please can you remove me from this list? No. But see the link below; the one marked "unsubscribe". :) -- Don't stop where the ink does. Shawn -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional c

Re: Debug when script WILL NOT RUN

2015-02-01 Thread ThankGod Ebenezer
Hello, Please can you remove me from this list? Regards,ThankGod On Sunday, 1 February 2015, 13:16, Shawn H Corey wrote: On Sun, 1 Feb 2015 00:10:30 -0800 Charles DeRykus wrote: > One good sleuthing tool is perltidy (perltidy.sourceforge.net) which > is good at unraveling a rat's ne

Re: Debug when script WILL NOT RUN

2015-02-01 Thread Shawn H Corey
On Sun, 1 Feb 2015 00:10:30 -0800 Charles DeRykus wrote: > One good sleuthing tool is perltidy (perltidy.sourceforge.net) which > is good at unraveling a rat's nest of errors to tease out the > culprit: You can also download and install with `cpan`: cpan Perl::Tidy Another good tool to ha

Re: Debug when script WILL NOT RUN

2015-02-01 Thread Charles DeRykus
On Sat, Jan 31, 2015 at 1:58 PM, Harry Putnam wrote: > I've given myself a headache googling on how to debug a perl script > that does not run. > > Maybe `debug' is the wrong word... I'd love to know if there is a more > accurage one. > > I realize this po

Re: Debug when script WILL NOT RUN

2015-01-31 Thread Robert Wohlfarth
On Sat, Jan 31, 2015 at 3:58 PM, Harry Putnam wrote: > [snip...] I have about 100 lines or so inside a File::Find: > > find ( > sub { > }, $tdir; >); > [snip...] > which looks like this ... snipped: > > [...] > > }<== incloses an if cla

Debug when script WILL NOT RUN

2015-01-31 Thread Harry Putnam
I've given myself a headache googling on how to debug a perl script that does not run. Maybe `debug' is the wrong word... I'd love to know if there is a more accurage one. I realize this post is quite a lot of yak, but hoping someone can lay out a few steps that will narrow d

Re: Debug

2010-09-27 Thread pawan kumar
Hi John, This is pawan.Thank for the all the inputs regarding program.John its working. Great john. Thank you. On Mon, Sep 27, 2010 at 3:32 PM, John W. Krahn wrote: > pawan kumar wrote: > >> Hi guys i need your folks help: >> Problem:I have to accept the elements into array and mult

Re: Debug

2010-09-27 Thread John W. Krahn
pawan kumar wrote: Hi guys i need your folks help: Problem:I have to accept the elements into array and multiply each element of array by 2 and print the resulting array. If input of array is (2,3) i Expect output as (4,6) but output is (0,4,6). why is tht zero cuming. #!/usr/bin/perl You s

Debug

2010-09-27 Thread pawan kumar
Hi guys i need your folks help: Problem:I have to accept the elements into array and multiply each element of array by 2 and print the resulting array. If input of array is (2,3) i Expect output as (4,6) but output is (0,4,6). why is tht zero cuming. #!/usr/bin/perl print "Content-type: text/h

Re: What interative perl shell I should use to debug the perl code?

2010-01-04 Thread Jenda Krynicky
ch longer > than the processing time. If I can not run the perl file > interactively, I will have to load the data file each time I run the > processing code. However, I can interatively run perl code, I can load > the data file once and run the processing code multiple times in orde

Re: What interative perl shell I should use to debug the perl code?

2010-01-01 Thread Peter Scott
file > interactively, I will have to load the data file each time I run the > processing code. However, I can interatively run perl code, I can load > the data file once and run the processing code multiple times in order > to debug the processing code. For debugging an existing prog

Re: What interative perl shell I should use to debug the perl code?

2009-12-31 Thread Peng Yu
On Thu, Dec 31, 2009 at 9:59 AM, Gabor Szabo wrote: > On Thu, Dec 31, 2009 at 5:46 PM, Peng Yu wrote: > >> In a 'perl -d', I try the following command, but it seems that it is >> not working as I expected. Can I input any arbitrary perl commands in >> the 'perl -d' session as if it is running by

Re: What interative perl shell I should use to debug the perl code?

2009-12-31 Thread Gabor Szabo
On Thu, Dec 31, 2009 at 5:46 PM, Peng Yu wrote: > In a 'perl -d', I try the following command, but it seems that it is > not working as I expected. Can I input any arbitrary perl commands in > the 'perl -d' session as if it is running by a perl interpreter? > >  DB<10> my $count = 10; > >  DB<11>

Re: What interative perl shell I should use to debug the perl code?

2009-12-31 Thread Peng Yu
On Thu, Dec 31, 2009 at 1:18 AM, Gabor Szabo wrote: > On Thu, Dec 31, 2009 at 5:08 AM, Peng Yu wrote: >> It seems that there are more than one choices of perl interactive >> shells. I'm wondering which one is best or most popular. > > I don't think there is a *best* one. There might be one that f

Re: What interative perl shell I should use to debug the perl code?

2009-12-30 Thread Gabor Szabo
On Thu, Dec 31, 2009 at 5:08 AM, Peng Yu wrote: > It seems that there are more than one choices of perl interactive > shells. I'm wondering which one is best or most popular. I don't think there is a *best* one. There might be one that fits most your situation and your experience level. A couple

What interative perl shell I should use to debug the perl code?

2009-12-30 Thread Peng Yu
I can not run the perl file interactively, I will have to load the data file each time I run the processing code. However, I can interatively run perl code, I can load the data file once and run the processing code multiple times in order to debug the processing code. Could somebody let me know wh

Re: how to write a debug-print sub with one argument?

2009-12-03 Thread Peter Scott
On Sat, 28 Nov 2009 02:41:06 -0800, Mark_Galeck wrote: > OK, I tried SmartComments, I must not be understanding something, I > followed the man page exactly, but it does not seem to work: > > use Smart::Comments; > > sub foobar { > ### at ... > ### $_[0] > } > > foobar 1; > > > and when I run

Re: how to write a debug-print sub with one argument?

2009-11-30 Thread Mark_Galeck
OK, I tried SmartComments, I must not be understanding something, I followed the man page exactly, but it does not seem to work: use Smart::Comments; sub foobar { ### at ... ### $_[0] } foobar 1; and when I run this I get ### at ... ### $_[0] : undef so both of these lines appear to not wo

Re: how to write a debug-print sub with one argument?

2009-11-25 Thread Rene Schickbauer
Mark_Galeck wrote: Hello, I want to write a simple debug-print subroutine, which you could call like this: $foobar = "foobar"; dbgPrint foobar; You could use a source code filter to rewrite dbgPrint $foobar; into dbgPrint('$foobar', $foobar); So you sub would b

Re: how to write a debug-print sub with one argument?

2009-11-24 Thread Mark_Galeck
Thank you very much for the great suggestions, I appreciate! -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: how to write a debug-print sub with one argument?

2009-11-23 Thread Philip Potter
2009/11/23 Mark_Galeck : > Hello,  I want to write a simple debug-print subroutine, which you > could call like this: > > $foobar = "foobar"; > dbgPrint foobar; One problem with your interface is it breaks under "use strict;". You should always use strict and u

Re: how to write a debug-print sub with one argument?

2009-11-23 Thread Rob Coops
On Mon, Nov 23, 2009 at 8:36 AM, Mark_Galeck < mark_galeck_spam_mag...@yahoo.com> wrote: > Hello, I want to write a simple debug-print subroutine, which you > could call like this: > > $foobar = "foobar"; > dbgPrint foobar; > > and it would print the variabl

how to write a debug-print sub with one argument?

2009-11-23 Thread Mark_Galeck
Hello, I want to write a simple debug-print subroutine, which you could call like this: $foobar = "foobar"; dbgPrint foobar; and it would print the variable name and value. I came up with the following: sub dbgPrint { my $arg = $_[0]; my @u

RE: the google keywords for debug...

2009-11-03 Thread Ming Qian
will not produce an endless loop, since "__WARN__" hooks are not called from inside one. cu, gabi -Original Message- From: childpsych.colum...@gmail.com [mailto:childpsych.colum...@gmail.com] On Behalf Of Ming Qian Sent: Monday, Novembe

RE: the google keywords for debug...

2009-11-02 Thread Hack, Gabi (ext)
called from inside one. cu, gabi -Original Message- From: childpsych.colum...@gmail.com [mailto:childpsych.colum...@gmail.com] On Behalf Of Ming Qian Sent: Monday, November 02, 2009 9:39 PM To: Shawn H Corey Cc: beginners@perl.org Subject: Re: the google keyw

Re: the google keywords for debug...

2009-11-02 Thread Ming Qian
gt;> warn "simple warn message\n"; >> I can not find this message in the project private logs. >> Also, >> I can not find this message in the Apache server logs. >> Where does this warn message go? The original author set some debug >> information

Re: the google keywords for debug...

2009-11-02 Thread Ming Qian
warn "simple warn message\n"; I can not find this message in the project private logs. Also, I can not find this message in the Apache server logs. Where does this warn message go? The original author set some debug information level? Or any other redirect ?? Thanks a lot, Bruce.

Re: the google keywords for debug...

2009-11-02 Thread Shawn H Corey
uot;; > .. > } > > I am sure that sub A was executed. > But I can not find the warn message in log. > The project is database website. perl + mason + html. > > Via the httpd.conf, I know the log location. > So I think there maybe a switch or a deb

Re: the google keywords for debug...

2009-11-02 Thread Ming Qian
message in log. The project is database website. perl + mason + html. Via the httpd.conf, I know the log location. So I think there maybe a switch or a debug level ? Thank you all. Bruce On Mon, Nov 2, 2009 at 10:51 AM, Ming Qian wrote: > Dear All, > > I am a beginner. >

the google keywords for debug...

2009-11-02 Thread Ming Qian
Dear All, I am a beginner. Recently, I receive a project in perl. In some *.pm files, use Carp; . sub A warn "a warn message";

Re: Debug Help Please

2008-07-14 Thread Peter Scott
On Mon, 07 Jul 2008 05:16:10 -0700, Andy wrote: > One of the Perl guys at my office. told me that I can use > use strict; > use warnings; > > but he said , he really doesn't because he wants the script to do what > it needs to do... And if one of "the car guys" at your office announced that he'd

Re: Debug Help Please

2008-07-09 Thread Chris Charley
- Original Message - From: "Andy" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: Sent: Tuesday, July 08, 2008 9:31 PM Subject: Re: Debug Help Please On Jul 7, 2:16 pm, [EMAIL PROTECTED] (Andy) wrote: On Jul 7, 11:53 am, [EMAIL PROTECTED] (Rob Dixon) wrote:

Re: Debug Help Please

2008-07-08 Thread Andy
On Jul 7, 2:16 pm, [EMAIL PROTECTED] (Andy) wrote: > On Jul 7, 11:53 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > > > > > Andy wrote: > > > > Funny how when you talk to different people you get different ways of > > > looking at it. > > > > One of the Perl guys at my office. told me that I can use >

Re: Debug Help Please

2008-07-08 Thread Andy
On Jul 7, 4:33 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > Andy wrote: > > > Funny how when you talk to different people you get different ways of > > looking at it. > > Yes, that is how the world works. In Perl there is the expression > TIMTOWTDI (There Is More Than One Way To Do It) which mea

Re: Debug Help Please

2008-07-07 Thread Andy
On Jul 7, 11:53 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > Andy wrote: > > > Funny how when you talk to different people you get different ways of > > looking at it. > > > One of the Perl guys at my office. told me that I can use > > use strict; > > use warnings; > > > but he said , he really doesn

Re: Debug Help Please

2008-07-07 Thread John W. Krahn
Andy wrote: Funny how when you talk to different people you get different ways of looking at it. Yes, that is how the world works. In Perl there is the expression TIMTOWTDI (There Is More Than One Way To Do It) which means that you will probably get different opinions on "The Right Way" to

Re: Debug Help Please

2008-07-07 Thread Rob Dixon
Andy wrote: > > Funny how when you talk to different people you get different ways of > looking at it. > > One of the Perl guys at my office. told me that I can use > use strict; > use warnings; > > but he said , he really doesn't because he wants the script to do what > it needs to do... Then

Re: Debug Help Please

2008-07-07 Thread Andy
On Jul 5, 9:54 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > Andy wrote: > > > Greets > > Hello, > > > Thanks for your earlier help, but I am still stuck. > > > I took your advice and I believe I put together the script as you > > said. > > Except that you apparently haven't yet enabled the warnin

Re: Debug Help Please

2008-07-05 Thread John W. Krahn
Andy wrote: Greets Hello, Thanks for your earlier help, but I am still stuck. I took your advice and I believe I put together the script as you said. Except that you apparently haven't yet enabled the warnings and strict pragmas in your program to help you find your mistakes. I decid

Re: Debug Help Please

2008-07-04 Thread Andy
On Jul 4, 1:16 am, [EMAIL PROTECTED] (John W. Krahn) wrote: > Andy wrote: > > Well Disregard the above script I made changes that I think were > > needed, but I still have no output in the .csv files > > You still have some of the same mistakes that were in the program the > last time you posted it

Re: Debug Help Please

2008-07-03 Thread John W. Krahn
Andy wrote: Well Disregard the above script I made changes that I think were needed, but I still have no output in the .csv files You still have some of the same mistakes that were in the program the last time you posted it. Have you read my reply to your first posting yet? John -- Perl is

Re: Debug Help Please

2008-07-03 Thread Andy
Well Disregard the above script I made changes that I think were needed, but I still have no output in the .csv files #!/usr/bin/perl #use strict; #use warnings; #Define LogFiles my $dateroot="$ARGV[0]"; # Value should be 2-digit month my $outgoing="outgoing_xferlog.$dateroot.csv"; # This

Re: Debug Help Please

2008-07-03 Thread John W. Krahn
Andy wrote: Greets Hello, I wrote this script to parse information from some log files. It Seems to work , or look like it works. In the end I get the log creation of .csv log files with no information. I am learning how to write this , I know there are tons of ways to do this. But My Boss m

Debug Help Please

2008-07-03 Thread Andy
Greets I wrote this script to parse information from some log files. It Seems to work , or look like it works. In the end I get the log creation of .csv log files with no information. I am learning how to write this , I know there are tons of ways to do this. But My Boss made a decision to keep a

Re: LWP debug

2006-05-03 Thread Peter Scott
On Wed, 03 May 2006 10:16:05 +0200, luis wrote: > Peter Scott wrote: >> >> use LWP::Debug qw(+conns); >> > > Thank you, Peter. That would be great if I knew where to read the STDERR > since I'm running my script from the command line in an out-of-t

Re: LWP debug

2006-05-03 Thread luis
server, in order to debug my application. use LWP::Debug qw(+conns); my $ua = LWP::UserAgent->new; [snip] Storing into a file is preferred over printing out to screen. Internally it is hardwired to print to STDERR. You could override the private method _log() that contains that code,

Re: LWP debug

2006-05-02 Thread Peter Scott
er, in order to debug my application. use LWP::Debug qw(+conns); > my $ua = LWP::UserAgent->new; [snip] > Storing into a file is preferred over printing out to screen. Internally it is hardwired to print to STDERR. You could override the private method _log() that contains that code, b

LWP debug

2006-05-02 Thread luis
Hi, the following code is part of a bigger script. I would like to know if there is a way to print out or store into a file all the messages that my script sends to the server, I mean, the full header and data parts sent to the server, in order to debug my application

LWP debug

2006-05-02 Thread luis
Hi, the following code is part of a bigger script. I would like to know if there is a way to print out or store into a file all the messages that my script sends to the server, I mean, the full header and data parts sent to the server, in order to debug my application

Re: single step - debug mode

2006-02-13 Thread Hans Meier (John Doe)
Stephen Mayer am Montag, 13. Februar 2006 17.25: > Bruce, > > What you want to use is `perl -d file.pl ` ...and especially the manuals provided with every perl installation, which is a very valuable source for information. Some tips: $ perldoc perl # lists manuals. # search if a manual exist

Re: single step - debug mode

2006-02-13 Thread Tom Phoenix
ger is -d. So you probably want something resembling this command line, with the "arguments" being the ones passed to your program, and the -d going to perl. perl -d file.pl arguments That will run your program under the debugger, so you should have a debug prompt before the first execu

Re: single step - debug mode

2006-02-13 Thread Stephen Mayer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruce, What you want to use is `perl -d file.pl ` Steve Bowen, Bruce wrote: > I've read my Llama book and been out to goggle on this and while I've found > data that suggests it is possible to step thru a script file, I've yet to > figure out th

single step - debug mode

2006-02-13 Thread Bowen, Bruce
I've read my Llama book and been out to goggle on this and while I've found data that suggests it is possible to step thru a script file, I've yet to figure out the exact command structure to accomplish this. I think it's file.pl -s arguments but that isn't working so far as I can see. I've

Re: debug code in BEGIN{} block

2006-01-20 Thread Tom Phoenix
On 1/19/06, Ken Perl <[EMAIL PROTECTED]> wrote: > How to debug code in BEGIN{} block? You can make a "permanent breakpoint" by assigning to $DB::single, even during a BEGIN block. $DB::single = 1 if $fred < 7; There's more detail in the perldebug manpage. Hope

debug code in BEGIN{} block

2006-01-19 Thread Ken Perl
How to debug code in BEGIN{} block? -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Debug a form that requires input variables

2004-11-25 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: Sorry I've login script that I'm trying to debug. User type in user id password. I'm getting the premature end of script headers. Therefore, I need to find why and where this is happing. Dan Please don't top post :) You can use perl's debu

Re: Debug a form that requires input variables

2004-11-25 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: Sorry I've login script that I'm trying to debug. User type in user id password. I'm getting the premature end of script headers. Therefore, I need to find why and where this is happing. Dan Please don't top post, reply inline :) You can use perl

Re: Debug a form that requires input variables

2004-11-25 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: Sorry I've login script that I'm trying to debug. User type in user id password. I'm getting the premature end of script headers. Therefore, I need to find why and where this is happing. Dan Please don't top post :) You can use perl's debu

Re: Debug a form that requires input variables

2004-11-25 Thread ds10025
Sorry I've login script that I'm trying to debug. User type in user id password. I'm getting the premature end of script headers. Therefore, I need to find why and where this is happing. Dan --On 25 November 2004 08:04 -0600 "JupiterHost.Net" <[EMAIL PROTECTED]> w

Re: Debug a form that requires input variables

2004-11-25 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: Hi Hello, How best to debug a form that requires user to input data? What do you mean "debug a form"? Do you mean validate wah they enter? With some programming lang it is possible to single step line by line. Is it possible with perl? Yes I imagine its very po

Debug a form that requires input variables

2004-11-25 Thread ds10025
Hi How best to debug a form that requires user to input data? With some programming lang it is possible to single step line by line. Is it possible with perl? Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/>

Re: perl -d / apache server debug

2004-03-13 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mike Ni) writes: >I have at least 25 perl files written by a person who >isn't here anymore. All these perl script files were >programmed to serve the inquiry from the Internet via >the web server. > >For me to understand the logic behind all the

perl -d / apache server debug

2004-03-11 Thread Mike Ni
Hey everyone, Working on my first perl project:: I have at least 25 perl files written by a person who isn't here anymore. All these perl script files were programmed to serve the inquiry from the Internet via the web server. For me to understand the logic behind all these perl files, I wan

Re: How can I debug perl-xs code?

2004-02-05 Thread Paul Johnson
On Wed, Feb 04, 2004 at 07:21:07PM -, pijush wrote: > Hi! > I am debugging a perl script on Linux OS which has a call to > C-function from a .so file. I have tried to debug this script with > "Perl -d" option and also "gdb perl". But when it enters in t

How can I debug perl-xs code?

2004-02-05 Thread pijush
Hi! I am debugging a perl script on Linux OS which has a call to C-function from a .so file. I have tried to debug this script with "Perl -d" option and also "gdb perl". But when it enters in the C function from perl code then I failed to debug the code. It only shows an a

Odd Display using Perl5.8 in Debug

2003-06-24 Thread Jeff Westman
---+ Note the leading '/' is on the same line as my print statement, and making it appear that when I display the contents of the variable, that it is in error (since it isn't obvious or intuitive to look at the preceeding line). Again, this is only when using Perl 5.8 and in de

Re: Perl debug

2003-06-20 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jeff Westman) writes: >Peter- > >When I tried the 'y' command I got: > >DB<3> y @a >adWalker module not found - please install > > >What's that about?! There's a letter missing; it should have said PadWalker module not found - please in

Re: Perl debug

2003-06-19 Thread Jeff Westman
>On Wed, Jun 18, 2003 at 05:21:06PM -0700, sandip das wrote: > >> can anybody let me know how to print out values of > >> certain variables in "Perl Debug" mode while doing > >> single stepping ? > > > >Use 'p' or 'V'. >

Re: Perl debug

2003-06-19 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Steve Grazzini) writes: >On Wed, Jun 18, 2003 at 05:21:06PM -0700, sandip das wrote: >> can anybody let me know how to print out values of >> certain variables in "Perl Debug" mode while doing >> single

Re: Perl debug

2003-06-18 Thread Steve Grazzini
On Wed, Jun 18, 2003 at 05:21:06PM -0700, sandip das wrote: > can anybody let me know how to print out values of > certain variables in "Perl Debug" mode while doing > single stepping ? Use 'p' or 'V'. 'h' will give you the list of available

Perl debug

2003-06-18 Thread sandip das
Hi, can anybody let me know how to print out values of certain variables in "Perl Debug" mode while doing single stepping ? Sandip. __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- To unsubscribe, e-mail: [EMAIL

Re: how to debug this error message: a thoughf one

2003-02-11 Thread Rob Dixon
Kasi ramanathen wrote: > hi friends, > > i use useragent to get some web page and store it in htm. i use > useragent module. when i run in my windows machine i get the desired > output. now the mecine is changed now also windows, when i run i get > the error message > > "can't locate LWP/UserAgent.

how to debug this error message: a thoughf one

2003-02-10 Thread kasi ramanathen
hi friends, i use useragent to get some web page and store it in htm. i use useragent module. when i run in my windows machine i get the desired output. now the mecine is changed now also windows, when i run i get the error message "can't locate LWP/UserAgent.pm in @INC (@INC contains: .)" wh

Re: script debug help

2002-09-05 Thread John W. Krahn
Mike Singleton wrote: > > Yes, I agree that it very hard to read, and next to impossible to debug. I > appreciate everyone's comments very much. I will use your troubleshooting > method, but the kicker is the the damned backup program write these random > log file names

Re: script debug help

2002-09-05 Thread Mike Singleton
Yes, I agree that it very hard to read, and next to impossible to debug. I appreciate everyone's comments very much. I will use your troubleshooting method, but the kicker is the the damned backup program write these random log file names (thus the my @files = glob('3*.log');),

Re: script debug help

2002-09-04 Thread John W. Krahn
David wrote: > > John W. Krahn wrote: > > > >> $current = $line[14]; > >> $jobid[$njob++] = $current; > >> $starttime{$current} = $line[2] . " "; > >> $starttime{$current} .= $line[3] . " "; > >> $starttime{$current} .= $line[4] . " "; > >> $starttime{$current} .= $line[5] . " "; > >> $sta

Re: script debug help

2002-09-04 Thread david
your script is very hard to read. :-) if you know where the problem might be, it's better to just post the section of code that might be failing. posting the whole file with lots of log lines make it hard to read. it seems to me that you just want the log lines that contain a certain reg. ex

Re: script debug help

2002-09-04 Thread Michael Fowler
On Wed, Sep 04, 2002 at 04:44:39PM -0700, david wrote: > John W. Krahn wrote: [snip] > > $starttime{$current} = join ' ', @line[2 .. 6]; > > or you could remove the need for join all together: > > $starttime{$current} = "@line[2..6]"; That doesn't really remove the join, it just makes it impl

Re: script debug help

2002-09-04 Thread david
John W. Krahn wrote: > >> $current = $line[14]; >> $jobid[$njob++] = $current; >> $starttime{$current} = $line[2] . " "; >> $starttime{$current} .= $line[3] . " "; >> $starttime{$current} .= $line[4] . " "; >> $starttime{$current} .= $line[5] . " "; >> $starttime{$current} .= $line[6]; >

Re: script debug help

2002-09-04 Thread John W. Krahn
Mike Singleton wrote: > > This script will ultimately return the values of the regex strings for > successful backup. I am stumped right now as how to proceed, as the script > seems to run without error, yet return nothing. > > == Log File = > 172.16.54.132 ssjobhnd Thu Jun 27 02:00:01 2

script debug help

2002-09-04 Thread Mike Singleton
This script will ultimately return the values of the regex strings for successful backup. I am stumped right now as how to proceed, as the script seems to run without error, yet return nothing. == Log File = 172.16.54.132 ssjobhnd Thu Jun 27 02:00:01 2002 SNBJH_3075J Syncsort Backup Expre

RE: debug function for use?

2002-07-02 Thread Hanson, Robert
cely formatted Perl code to recreate the data structure. Some people use Dumper for debugging, and some use it for persistence. Rob -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 4:22 PM To: Beginners (E-mail) Subject: debug function for use

  1   2   >