Created
March 13, 2014 01:44
-
-
Save therealjasonkenney/9520482 to your computer and use it in GitHub Desktop.
In the game of code...
This file contains hidden or 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
#!/usr/bin/perl | |
sub win() { | |
print "Do the right thing? (Y/N) "; | |
return <STDIN> =~ /^[Nn](O|o|)$/; | |
} | |
1 while win or die; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment