I have an AWK script that I'm working on and, unfortunately, I don't know AWK at all. I know PERL better so I am trying to convert the AWK script to PERL using the a2p.exe included with the ActiveState perl install.
Anyway.....
The a2p.exe bombs out on several lines. The first one is:
COUNT["security"][$4]++ # used for summary report
I believe this is a multi-dimension (associative) array that would be better written as:
COUNT["security",$4]++ # used for summary report
Once I fix that issue I then get an error on the following line:
VPNSESSION[$4][PORT]["startim"] = time(YEAR,MONTH,DAY,HOUR,MINUTE,SECOND)
Here, I'm stumped. What in the world is it? Multi-multi-dimensional array? The above line is the first time that the array VPNSESSION appears.
Any help I can get on this is greatly appreciated. Please let me know if there is any other information you need. Thanks!!!
Kent
Anyway.....
The a2p.exe bombs out on several lines. The first one is:
COUNT["security"][$4]++ # used for summary report
I believe this is a multi-dimension (associative) array that would be better written as:
COUNT["security",$4]++ # used for summary report
Once I fix that issue I then get an error on the following line:
VPNSESSION[$4][PORT]["startim"] = time(YEAR,MONTH,DAY,HOUR,MINUTE,SECOND)
Here, I'm stumped. What in the world is it? Multi-multi-dimensional array? The above line is the first time that the array VPNSESSION appears.
Any help I can get on this is greatly appreciated. Please let me know if there is any other information you need. Thanks!!!
Kent