Just for anyone's info, I managed to learn PERL over the course of a weekend, 20 cups of coffee, about 20 hours at the keyboard/internet, and still make it to the family meal tables, bed time stories etc. Crawled out of my office at 5am Sunday with a working answer that works a treat for me...