Excellent! Thanks, that works as I want.
It turns out my original code, albeit verbose, almost works when I change that "==" to "eq". One of those things were you can't see the wood for the trees!
Thanks for the tip regarding iterating through @lines. There will be an huge amount of data in there when it goes live.
Thanks again
In reply to Re^4: Comparing Hash key with array
by packetstormer
in thread Comparing Hash key with array
by packetstormer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |