Given you had an answer to a similar question, what attempts (if any) did you make to adapt that answer to the new requirement(s)?
Perlmonks is not a free software development shop. We gladly provide our knowledge to those who have made every attempt to solve their problems and cannot go further. If you want someone to write your code for you, look at http://jobs.perl.org for reasonable rates on consultants.
------
We are the carpenters and bricklayers of the Information Age.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
| [reply] |