Skip to content

Instantly share code, notes, and snippets.

@wakhub
wakhub / polyglot.pl.php.py.rb.cpp.m
Created June 8, 2012 13:58 — forked from SaswatPadhi/polyglot.pl.php.py.rb.cpp
PHP + Perl + Python + Ruby + C + C++ + Objective-C - polyglot
#/*<?php echo "PHP Code\n"; __halt_compiler();?> */
#include <stdio.h> /*
print (("b" + "0" == 0 and "Perl Code\n") or (0 and "Ruby Code\n" or "Python Code"));
__DATA__ = 1
"""""
__END__