Since this sounds like a homework assignment, I cannot give you the answer, but I can point you in the right direction.
Perldoc is your friend and you can look up that information there.
Please keep in mind that the posting of homework questions to obtain the answers without legwork on your part is against site policy.
Regards,
Jeff