Last active
July 13, 2019 04:04
-
-
Save Code-Hex/c05dd96f137312a237b34839ca34f8d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
#!perl | |
#*/ | |
package main;import("fmt");import("io/ioutil"); | |
const(q=`/* | |
#!perl | |
#*/ | |
package main;import("fmt");import("io/ioutil"); | |
sub import{}; | |
print "hello"; | |
__END__ | |
`/*=);sub import{};sub const{$_=shift=~s!`(.*)`\/\*!$1!gr;eval}; | |
__DATA__ | |
*/);func init(){ioutil.Discard.Write([]byte(fmt.Sprintf(q)))};func main(){_=`}; | |
__END__ | |
*/);func main(){ioutil.Discard.Write([]byte("Hello"));`;fmt.Printf(q)} |
Author
Code-Hex
commented
Jul 13, 2019
- https://codehex.hateblo.jp/entry/2019/07/02/090000
- https://shogo82148.github.io/blog/2016/04/06/ployglot-quine-of-golang-and-perl/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment