#/* 0"!dl" v BEFUNGE CODE */ #ifdef NOT_C /* skip C code for Perl, Ruby and Bash */ false && $skipme = < /* C CODE */ int /* C CODE */ main (int argc, char **argv) /* C CODE */ { /* C CODE */ printf ("Hello, world!\n"); /* C CODE */ return 0; /* C CODE */ } /* C CODE */ #ifdef NOT_C /* v"o""r"< */ /* > v >25*25**25*9++ v BEFUNGE CODE */ END # For Perl and Ruby [] means an array/vector, which is true, but for Bash it # # means to evaluate the expression which is false so the command is # # skipped. Befunge just uses the comma to output an ascii character. # [ 1 == 2 ] && ( print "Hello, world!\n" ); # PERL,RUBY,BASH AND BEFUNGE CODE# #For Bash, the arguments to eval are concatenated and given to the true # # command and so are ignored, but for Perl and Ruby the 'unless' part # # is a separate clause which causes the whole eval command to be skipped# eval 'echo "Hello, world!" ; true' unless 1; # BASH CODE # #endif /* ^ :#"Hello" ", "< BEFUNGE CODE */ #/* ^ _ 24*2+,@ BEFUNGE CODE */ #/*---- Ultimate Programming Challenge: C, Perl, Ruby, Bash and Befunge -----*/