Created
March 17, 2010 23:33
-
-
Save snarkyboojum/335859 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
se v6; | |
# parse cmdline opts and run tardis | |
while (my $cmd = prompt '> ') { | |
given $cmd { | |
when /look/ { say 'look...' } | |
when /step/ { say 'step...' } | |
when /n/ { say 'n...' } | |
when /go (\d+)/ { say 'go $1' } | |
when /quit/ { exit } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment