in reply to C compiler ... in Perl

If you want to do this the insane twisted way, start by writing a C => Perl translator and running gcc through it. The result will be a horrific mess (though if your translator is right it should actually work, albeit quite inefficiently), which you can then proceed to attempt to clean up by hand, a little at a time. The disadvantages of this approach should be obvious; the advantage is that, although your compiler will be slow, its output will be just fine.

Doing a project like this will not only teach you a lot, it will also get you a lot of strange looks when you tell people about it.


$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/