This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
gashapwn
/
lpst
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
created MNU.pm and drv.pl
master
gashapwn
3 years ago
parent
6276952ec3
commit
93a646a591
2 changed files
with
37 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+25
-0
MNU.pm
+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()){
}
Write
Preview
Loading…
Cancel
Save