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



blueberryboost
New User

Apr 1, 2010, 12:26 PM


Views: 3570
Automatically Converting Perl to C

Hi,

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)


rovf
Veteran

Apr 6, 2010, 3:54 AM


Views: 3531
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.