in reply to Need Help with Perl Code

You must have PM confused with "The Lazy Students' Plagarism Sources."

Good of you to state you question in a way that makes it utterly clear that you're asking us to do your homework.

Good... that we don't do that. You'll learn little or nothing if we do it for you.


we will help you if:
  • Your show some effort; ie, post your own code that begins to attack the problem. Be sure to include output and/or any errors or warnings.
  • Explain why the result is unsatisfactory... and
  • Ask for help on a specific problem. That, we'll be glad to steer you in the right direction.

(You may also want to read such site-FAQs as On asking for help, How do I post a question effectively? and Writeup Formatting Tips.)

Yet another gimmé request!
Sorry, we expect SOPW to seek wisdom, not to ask us to do so for them.