in reply to perl script

G'day qazmlp,

Welcome to the Monastery.

Sorry, but PerlMonks is not a code writing service. Please see "How (Not) To Ask A Question: Do Your Own Work" which has a link to a more appropriate forum.

See also: "How do I post a question effectively?".

— Ken