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.
|
- #!/usr/bin/perl
-
- use warnings;
- use strict;
-
- use lib "./";
- use NTVL;
- use LPST;
-
- package MNU;
-
- sub prompt(){
- printf("> ");
- my $in;
- $in = <STDIN>;
- chomp $in;
-
- return $in;
- }
-
- sub loop(){
- my $in = prompt();
-
- return 0 unless $in;
- return 0 if $in eq "quit";
- return 1;
- }
-
- return 1;
|