I have a file:
Class1:
entry1 = <some text>
entry2 = <some text>
entry3 = <some text>
Class2:
entry1 = <some text>
entry2 = <some text>
entry3 = <some text>
Class3:
entry1 = <some text>
entry2 = <some text>
entry3 = <some text>
.
.
.
Here's my problem... I need to search the file for the Class1 paragraph then grab the <some text> from entry1 and <some text> from entry2 and assign the text to two variables which I use to create a later on in the perl program I'm trying to write. Now I can search the file for the Class1 paragraph, however I have not been able to figure out how to assign the variables... any suggestions would be greatly appreciated.
regards,
jping45
Class1:
entry1 = <some text>
entry2 = <some text>
entry3 = <some text>
Class2:
entry1 = <some text>
entry2 = <some text>
entry3 = <some text>
Class3:
entry1 = <some text>
entry2 = <some text>
entry3 = <some text>
.
.
.
Here's my problem... I need to search the file for the Class1 paragraph then grab the <some text> from entry1 and <some text> from entry2 and assign the text to two variables which I use to create a later on in the perl program I'm trying to write. Now I can search the file for the Class1 paragraph, however I have not been able to figure out how to assign the variables... any suggestions would be greatly appreciated.
regards,
jping45