#define shift main #define or ( #define eval ) shift or eval {printf("Hello, World\n");} [download]
neil@gimp:~$ gcc perlc.c; ./a.out Hello, World neil@gimp:~$ perl perlc.c Hello, World [download]
Also see http://ideology.com.au/polyglot/ for a program written in COBOL, Pascal, Fortran, C, Postscript, Shell (bash), x86, and, last but not least, Perl.
Super fun :)
www.com | www.net | www.org
No recent polls found