kingdom has asked for the wisdom of the Perl Monks concerning the following question:
Is it pssoble to have a match expression only match a specific line of text in a text file. There are multiple lines in the text file that will match the expression, however each line is different and special. For example, I would like to match items in lines 1 and 2, but those numbers will change for each file I am using, but not the line they are on.
1 12345.67890 1 13456.12345
I would need to match the 12345.67890 from line 1 and the 13456.12345 from line 2, but those numbers could just as easily be...
...in another file. Thanks for any help1 54321.54321 1 34567.56789
Update: Thanks a bunch, those ideas got me in the right direction!
20060508 Janitored by Corion: Restored original content
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching on a specific line of text
by bart (Canon) on May 07, 2006 at 09:55 UTC | |
by bart (Canon) on May 07, 2006 at 19:29 UTC | |
by davidrw (Prior) on May 07, 2006 at 18:54 UTC | |
by bart (Canon) on May 07, 2006 at 19:37 UTC | |
|
Re: Matching on a specific line of text
by Samy_rio (Vicar) on May 07, 2006 at 10:09 UTC | |
by davidrw (Prior) on May 07, 2006 at 18:59 UTC |