- or download this
print "$command\n";
$exp->send("$command\n");
$exp->expect(1, '-re','\(\d+\)');
- or download this
$exp->send("$command\n");
print "$command\n";
$exp->expect(1, '-re','\(\d+\)');
- or download this
my $counter = 1;
print "($counter) ";
- or download this
my $counter = 0;
- or download this
(1) (2) Here is the second command - or download this
while (<STDIN>) {
chomp;
...
if ($_ eq "commit") {print "Committing data\n";}
if ($_ eq "exit") {print "Exiting program...\n"; exit;}
}