Thank you.
Hehe yeah, I suppose for the non-trained eye, that second part you quoted must surely look dodgy, and a bit hard to follow.
If it were part of some huge code I'd of course have named the %a, %b to variables with names that give you some information about what they contain (easier to follow in case of debugging), but for these little scripts I don't bother, however it's a personal choice.
Greets