http://www.perlmonks.org?node_id=1010813


in reply to convert c-code into perl-code

Why convert? (homework?)
What have you tried? (see On asking for help: we prefer to teach; not to play the role of code-a-matic)
Have you done anything on your own? (if not, see Tutorials, starting at "Getting Started with Perl")

We tend to be most responsive to those who try to help themselves