Implementation of Lucifers Pastime
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. package MNU;
  5. sub prompt(){
  6. printf("> ");
  7. my $in;
  8. $in = <STDIN>;
  9. chomp $in;
  10. return $in;
  11. }
  12. sub loop(){
  13. my $in = prompt();
  14. return 0 unless $in;
  15. return 0 if $in eq "quit";
  16. return 1;
  17. }
  18. return 1;