I perhaps should have said 'favorite' way or 'most efficient' way. I did searches on SuperSearch, Stackoverflow and Google and have a good solution.
I know I've 'been advised' previously and I assure you I do prior research but as we know there is more than one way to do it and I am continually impressed by the answers I receive from Perl Monks.
As an aside, I think if it's worth answering my query, it's worth actually answering the query not castigating for being 'lazy'.
Thanks to all who replied with solutions.