What have you tried so far, and what results did you get?
You'll get much better replies if you show what effort you've already put into solving your problem, how far you've got toward a solution, and what parts you don't understand. This is especially true when it comes to help with homework assignments. It's also helpful to let others know how much experience you have with Perl, from "none at all" to "I've read a quick introduction and written a few simple scripts."
The more (relevant) information you provide, the better others will be able to guide you.
(edited to add) Oh, and the Anonymous Monk above is right -- you should definitely check out the Guide to the Monastery. I think this part of the FAQ is the most important for newcomers: How do I post a question effectively?