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: 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 (thus the my @files = glob

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');), so I could only thi

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 help

2001-08-23 Thread Bob Showalter
> -Original Message- > From: Scott Taylor [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 22, 2001 6:46 PM > To: [EMAIL PROTECTED] > Subject: Debug help > > > Hi all, > I snatched this guest book off some script site Be careful. A lot of that stuf

Debug help

2001-08-22 Thread Scott Taylor
Hi all, I snatched this guest book off some script site and it's either gone now, or I misplaced the bookmark, but anyhow, perhaps someone can help me with the syntax. Something I changed at 3AM one morning now it doesn't work right, I know the MySQL parameters are fine, it's something I accid