I have an array, as follows:
@allLines = (
"line1 = value1",
"line2 = value2",
"line3 = value3",
"!line4 = value1",
"!line5 = value2",
"!line6 = value3",
"line7 = value7",
"line8 = value8",
"line9 = value9",
"line10 = value10"
) ;
How do I loop through each line with the following criteria:
If the line starts with a bang (!) AND the value has already
been "seen", skip that line AS WELL AS the line previously
seen. In this case, the remaining list should only have lines
7 to 10 because line 4 starts with a bang AND the value is
equal to the value of line 1. And so on...
Any help would be greatly appreciated. Thanks.
Gabe
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]