in reply to loop problem
It does, but it has nothing to do, since the lines from FH are exhausted. perl won't automatically start reading from the top of the file again. You can open and close the handle within the outer loop, or do as Transient suggests and save the contents from FH into an array, which you can then traverse as often as you want.
the lowliest monk
|
|---|