P
pop
Hi folks,
I solved a query I asked you folks sometime back. Here is a small bit
thats again confusing
So here is the log line that I am trying to take info out
log line:
M 2006-05-03 10:20 +0000 mahesh 1.4 testfile.c com/avs/cpar ==
/test/com/avs/cpar
Here is the regexp
elsif ($line =~ /(^[M]) \s* ([^+]+) + [0]+ \s* ([\w]+)\s* ([^+]+) \s*
([^\w]+)\s* ([\w]+) \s* == \s* ([^. ]+) / )
{
print
"<tr><td>$6</td><td>$4</td><td>$3</td><td>$2</td><td>$1</td></tr>";
The above gives me fairly all the variables that I want except goofing
up in one location, ie,,
that is the $4 location. It gives
$4 = 1.4 client.c com/avs
$6 = cpar
I want
$4 = 1.4
$5 = com/avs/cpar
$6 = /test/com/avs/cpar
okay can someone take a look and tell me where I am going wrong.
cheers,
pop.
I solved a query I asked you folks sometime back. Here is a small bit
thats again confusing
So here is the log line that I am trying to take info out
log line:
M 2006-05-03 10:20 +0000 mahesh 1.4 testfile.c com/avs/cpar ==
/test/com/avs/cpar
Here is the regexp
elsif ($line =~ /(^[M]) \s* ([^+]+) + [0]+ \s* ([\w]+)\s* ([^+]+) \s*
([^\w]+)\s* ([\w]+) \s* == \s* ([^. ]+) / )
{
"<tr><td>$6</td><td>$4</td><td>$3</td><td>$2</td><td>$1</td></tr>";
The above gives me fairly all the variables that I want except goofing
up in one location, ie,,
that is the $4 location. It gives
$4 = 1.4 client.c com/avs
$6 = cpar
I want
$4 = 1.4
$5 = com/avs/cpar
$6 = /test/com/avs/cpar
okay can someone take a look and tell me where I am going wrong.
cheers,
pop.