This question already has an answer here:
Your program should print out
just another <LANG> hacker where
<LANG> is replaced by whatever language you are running in. Your program must run in at least two different languages, and print out differently in each obviously.
Edit: I've changed the rules slightly so as not to be a dupe of Write a polyglot that prints the language's name. You do not have to print out only the
just another <LANG> hacker text. You may also print out anything else you want as long as
just another <LANG> hacker appears somewhere in your output.
Two versions of a language only count separately if the following conditions hold:
- You print out the version in each one.
- You detect which version is running by a less trivial way than running a
ver()function or comparable in whatever lang it is.
- The two have different major version numbers and substantial syntax differences.
You may not have any errors on the maximum level of warning in any of the languages.
- Program must terminate.
- Whatever answer supports the most languages. In case of a tie, the shorter answer.