in reply to Re^2: Parsing for [] in a file
in thread Parsing for [] in a file

ah!that greatly worked. Thank you very much. swapping the foreach and while and chomping after foreach.