I am getting back into Perl programming and I would appreciate you help with the following issue. I have a file which contains many lines of text such as:-
THREAD_ID:1bf1d698 CDR_TYPE:AO SUB_TIME:240815144127 DEL_TIME:240815144127 OA_ADDR:5.0.OTSDC PRE_TRANS_OA:5.0.OTSDC DA_ADDR:1.1.966555696176 PRE_TRANS_DA:1.1.966555696176 ORIG_LOCN:10.100.80.7/7220 ORIG_IDNT:OTS A2P DEST_LOCN:173.209.195.44/8341 DEST_IDNT:Syniverse A2P I_ERR:0.0 PPS_ID: PPS_PROFILE:AO Submission - OA charged PPS_ERR:1.0 O_ERR:0.0 SILO: MSG_LEN:22 SEG_NUM:1 of 1 DLV_ATT:0 END_POINT:ESME FINAL_STATE:DELIVERED REG_DEL:1 I would like to post process these lines of text such that I have an array of elements which I can later use as I want to output to a result file. The elements (post processed) should look like this :Thanks for your helpTHREAD_ID:1bf1d698 CDR_TYPE:AO SUB_TIME:240815144127 DEL_TIME:240815144127 OA_ADDR:5.0.OTSDC PRE_TRANS_OA:5.0.OTSDC DA_ADDR:1.1.966555696176 PRE_TRANS_DA:1.1.966555696176 ORIG_LOCN:10.100.80.7/7220 ORIG_IDNT:OTS A2P DEST_LOCN:173.209.195.44/8341 DEST_IDNT:Syniverse A2P I_ERR:0.0 PPS_ID: PPS_PROFILE:AO Submission - OA charged PPS_ERR:1.0 O_ERR:0.0 SILO: MSG_LEN:22 SEG_NUM:1 of 1 DLV_ATT:0 END_POINT:ESME FINAL_STATE:DELIVERED REG_DEL:1
In reply to Parsing file in Perl post processing by gbwien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |