Similar to my earlier Perl Python Partial Polyglot.
This one runs under either Golang (go run ./script) or Perl, and produces *mostly* the same output. Arguably not a true polyglot since the Go doesn't depend on the Perl, but the Perl certainly depends on the Go.
//;$_=<<'/*',y'>>''; package main; func main() { print("Just another Golang Hacker,\n"); } //;main() /* s&(\146\w{3})(.*)\x47\w{5}&lc($1^'5 ,C').$2.('dQFX'^4x4)&es;s;$;$_;ee; */
|
|---|