- or download this
print "Insert your command:";
$input = <STDIN>;
...
elsif ($input eq "other command") {
# do something else
}
- or download this
print "Insert your command:";
$input = <STDIN>;
...
elsif ($input =~ /^other command\s+(.*)/) {
# do something else
}
- or download this
else {
print "'$input' is not a valid command. Type help for a full list of
+ commands.\n";
}