Parse tags into arrays

view story

http://www.unix.com – Hello, I am writing a PERL code. The code is given a file which has data in the format of : Code: <Tag Name> <Tag value> e.g. : Code: FIRSTNAME DAVID Now, the file to be processed by the PERL code has data something like this : Code: TAGSTART FIRSTNAME DAVID LASTNAME RHODES <some other tags> <some other tags> ACCOUNT 1000901 <some other tags> <some other tags> BILLAMOUNT 4200 <some other tags> <some other tags> TAGEND The entire set of tags from TAGSTART through TAGEND are repeated multiple times in a file. The number of (HowTos)