Remove or $1 ne 'rf1' from the test in the second while loop. If that doesn't do what you want then show us an example of the output you do want (assuming the original input data).
In reply to Re^3: hash help
by GrandFather
in thread hash help
by bkish11
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |