http://www.perlmonks.org?node_id=841031


in reply to Will this work?

Please describe the symptoms in rather more detail than "it doesn't work". Hardly anyone is going to wade through a couple of hundred lines of code otherwise.

Likewise, try to strip down the posted code to remove everything which does work and is otherwise unimportant from the point of view of problem finding. The more closely you can locate the problem, the easier it is to provide a solution.

Give us a clue where to look and there are a number of people around here who will be glad to help where they can.

Finally, get into the habit of including

use strict; use warnings;
at the head of your scripts. You will never regret their aid in displaying problems.

Paul