"be consistent" | |
PerlMonks |
Re^2: Infinite regex loop...by tj_thompson (Monk) |
on Jun 29, 2011 at 22:01 UTC ( [id://912047]=note: print w/replies, xml ) | Need Help?? |
Your code, for the most part, seems to do what you want. I don't see how you can end up in a loop. The only portion that seems very suspect is this:
You're stuffing the line you find into a hash key named the same as the line value. This is likely not what you want. This may be closer to what you want (assuming my data below somewhat resembles your file), but it's honestly hard to say:
Output:
In Section
Seekers of Perl Wisdom
|
|