Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
added some more basic functionality. I've started working on a python…
Browse files Browse the repository at this point in the history
… version instead. Next update will remove the perl version and include a semi-finished python version.
  • Loading branch information
hughrawlinson committed Dec 30, 2011
1 parent 447e8b5 commit af706d3
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions main.pl
Expand Up @@ -4,8 +4,9 @@
$prev;
$break = 1;
$n = 0;
$mbreak = 1;
print "|| SYSTEM UP ||\n";
print "|| BE AWARE THAT 'reset' IS A RESERVED KEYWORD ||\n";
print "|| BE AWARE THAT 'reset', 'save', 'load' AND 'quit' ARE RESERVED KEYWORDS ||\n";


sub the_loop{
Expand All @@ -14,12 +15,31 @@ sub the_loop{
#}
}

while (1) {
sub save(@lines, @responses){

}

sub load{

}

while ($mbreak == 1) {
$input = <STDIN>;
chomp($input);
if ($input eq "reset"){
print "|| has been reset ||";
system("clear");
}
elsif ($input eq "quit"){
$mbreak = 2;
}
elsif ($input eq "save"){
save();
}
elsif ($input eq "load"){
load();
}
else{
chomp($input);
if (scalar(@lines > 0)){
the_loop();
}
Expand Down

0 comments on commit af706d3

Please sign in to comment.