the same script, the final step, and again does not do what I wnat it to do

2004-01-24 Thread danield
split(/:/, $_); $impressions += $value if ($value =~ /\d+/); } } } } close FH or die $!; } print OUT 'Total impressions: ', $impressions or die $!; } Any suggestions? Thank you for your time. danield -- To unsubscribe, e-mail: [EMAIL PROTEC

how to construct 2 consecutive if conditions?

2004-01-24 Thread danield
n it.\n"} } } close FH or die $!; } # print OUT 'Total impressions: ', $impressions or die $!; } Thank you for your time. danield -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Why is this not a match?

2004-01-24 Thread danield
2check, $month, $year Where I am checking if there is a line Summary log by "if ( / Summary Log (generated:/ ) {" And I am receiving this error: Unmatched ( in regex; marked by <-- HERE in m/ Summary Log ( <-- HERE genereated:/ at c07_imp.pl line 25. Does anybody know

Calculations with date

2004-01-18 Thread danield
suggestions or examples. Thank you for your time. danield -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

How to count the size of files in a directory

2003-12-27 Thread danield
ot;AB" (sort of AB*) Can anybody advice? Thank you for your time. danield -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Reading a log file, again = works as desired

2003-12-09 Thread danield
Hello Tom, Thank you very much. I appreciate your help. This script works flawlessly, and does exactly what I need. Thank you for your time. danield >From: "Tom Kinzer" <[EMAIL PROTECTED]> >To: "Beginners Perl" <[EMAIL PROTECTED]> >Subject: RE: Reading

Reading from a log - still a problem

2003-12-07 Thread danield
,741,322) What may be a solution for this? Thank you for your time. danield -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Reading from log

2003-12-05 Thread danield
store it into variable. If it was something like 'total: 292', I might be able to do it, however the value is on completely new line and nothing precedes it. Is anyone willing to help me? I am a completely newbie in programming. Thank you for your time. danield -- To unsubscri