Created
October 6, 2012 07:20
-
-
Save zby/3844302 to your computer and use it in GitHub Desktop.
a simple perl quine
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
my $x = 'my $x = X; | |
$y = chr(39) . $x . chr(39); | |
$x =~ s/X/$y/; | |
print $x; | |
'; | |
$y = chr(39) . $x . chr(39); | |
$x =~ s/X/$y/; | |
print $x; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's a shorter one, also simple, or at least short. Remarkable in that it's two identical lines followed by one blank line