Browse Source

created MNU.pm and drv.pl

master
gashapwn 3 years ago
parent
commit
93a646a591
2 changed files with 37 additions and 0 deletions
  1. +25
    -0
      MNU.pm
  2. +12
    -0
      drv.pl

+ 25
- 0
MNU.pm View File

@@ -0,0 +1,25 @@
#!/usr/bin/perl

use warnings;
use strict;

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;

+ 12
- 0
drv.pl View File

@@ -0,0 +1,12 @@
#!/usr/bin/perl

use warnings;
use strict;

use lib "./";
use MNU;

while(MNU->loop()){
}


Loading…
Cancel
Save