![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Hello World in four languages... at the same timeby AlexL (Sexton) |
on Feb 10, 2003 at 06:44 UTC ( #234034=obfuscated: print w/replies, xml ) | Need Help?? |
Here's a multiple-language program, or polyglot, that prints out the well-known phrase. It can be run in Perl, C (with one compiler warning), Tcl, and REBOL.
edit: removed an unnecessary #define, a fragment from an earlier version of the code. It was actually a somewhat cunning way to obfuscate the code, but this code isn't strictly designed just to frustrate the reader. another edit: The "fix" broke it. It really does work now.
Back to
Obfuscated Code
|
|