Eri Mendz wrote:
hello everyone,
since im learning perl, i might as well harness its power to solve my
small real-world problem. sample lines of my grep'ped ppp log goes
like this:
Jan 12 05:47:50 localhost pppd[8696]: Connect time 2.2 minutes.
Jan 12 19:23:44 localhost pppd[9359]: Connect
Eri Mendz wrote:
hello everyone,
Hello,
since im learning perl, i might as well harness its power to solve my
small real-world problem. sample lines of my grep'ped ppp log goes
like this:
Jan 12 05:47:50 localhost pppd[8696]: Connect time 2.2 minutes.
Jan 12 19:23:44 localhost
Thus spoke Wiggins d'Anconia [EMAIL PROTECTED] last [2003-02-04 14:04]:
[snip]
Use of uninitialized value in concatenation (.) or string at
./diamond-optr.pl line 15, line 22.
This looks like it might be caused by lines in your log file that do not
have 8 space delimited fields, in
Eri Mendz wrote:
dear wiggins and all,
first off, thanks for your replies. you guys are very helpful.
yep i found the errant lines in the log causing the problem. i deleted
them lines and errors gone. i wasn't able to improve much the script i
started. its kinda hard dividing my
hello everyone,
since im learning perl, i might as well harness its power to solve my
small real-world problem. sample lines of my grep'ped ppp log goes
like this:
Jan 12 05:47:50 localhost pppd[8696]: Connect time 2.2 minutes.
Jan 12 19:23:44 localhost pppd[9359]: Connect time 34.0 minutes.
Eri Mendz wrote:
hello everyone,
this just prints the time field on each line until finish of loop. i
tried using += operator to get sum but i end up getting errors. how do i
do this? i checked my script with perl's -c flag and it says syntax OK
but i get errors when i run the script in command