Before we answer we need some more info.
in reply to Perl Extract specific string
- Are these three lines of data actually ONE line or indeed THREE lines? Tip: enclose your data in <code> ... </code> tags. That makes it easier to see the actual format and also things like square brackets and such.
- Can you show some more lines of your data? Especially when you have to write perhaps a regular expression to extract the data it is always good to see some more data, to check how "regular" your data structure really is.
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics