I have a log file that uses this type of format. The there is a bunch of different line format this one example is from LINE_TYPE: it is split by either { } or " " and sometimes there is { {} {} }, curly inside of curly. I want to split all of them and put them into an array or maybe a hash with their variable name as a reference. I can change the variable reference parts but I cant change the log file. This is just a short example most lines can get to a hundred variables.
LOG LINE:
Tue Jan 29 06:23:49 2008 LINE_TYPE: {test test} {3} {test} { {test1} {test2} } {files.doc} "testing again"
Then I have a variable that tells how to process "LINE_TYPE"
"LINE_TYPE:" "%num1 %num2 %num3 %num4 %num5 %num6"
Thanks for the help!
Start Free Trial