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
- 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:
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
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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];
>
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
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
> -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
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
24 matches
Mail list logo