Home: Perl Programming Help: Advanced:
Automatically Converting Perl to C

New User

Apr 1, 2010, 12:26 PM

Views: 4093
Automatically Converting Perl to C


I would appreciate if the experts here help me with identifying a good tool that can automatically convert a Perl program to a C program.

I am using Ubuntu 64 bits.

I have read about p2c from http://dataconv.org/apps_source.html however I am confused as it says that p2c is for both Pascal to C and Perl to C conversion ???
Also after installing p2c on my Ubuntu I tried to convert a program and I am getting weird errors, it seems that it expects a Pascal code.

Does anybody know about a better tool? Or does anybody have experience with using p2c for translating Perl to C?

Thank you very much!

(This post was edited by blueberryboost on Apr 1, 2010, 12:32 PM)


Apr 6, 2010, 3:54 AM

Views: 4054
Re: [blueberryboost] Automatically Converting Perl to C

I doubt that you will find any Perl-to-C converter, simply because it doesn't make much sense to write one. The webpage you are refering to, lists several free translators, and p2c translates, as you correctly guessed, Pascal to C.