Did you read the post you replied to? It says the specifications are unclear, that needs some clarification from you. Also, PerlMonks is here to help people learn Perl. To get help, please show some effort (try to apply the suggestions you've been given, write some code,
perlintro) - or you can pay someone to write the code for you (not here).