in reply to grep of readline matching more lines than elements in array
I can only guess that the grep is matching more than one line for some of the elements in @isos20
Why are you guessing? Don't you know? If you don't even know if the problem exists, how can we help you?
And if the problem does exist, the way to verify it is to check the data, which we don't have.
I don't know why that would happen
There are two possibilities (assuming your actual code is correct. How can you "lose" a pair of //s when copy&pasting? You didn't C&P? Why not?):
You are not anchoring your regex to the the start of the line. Is it possible for a different identifier to appear someplace other than the beginning of the line?
Have you checked the contents of the array?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: grep of readline matching more lines than elements in array
by AnomalousMonk (Archbishop) on Dec 03, 2013 at 20:02 UTC |