1
2
3
4
5
6
7
8
9
#!/usr/bin/perl -w
use strict;
my $line;
do {
$line=<STDIN>;
chomp $line;
print "Input: $line\n";
} until $line eq "ENDE" || $line eq "QUIT";
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl -w
use strict;
my $line;
while ($line ne "ENDE" || $line ne "QUIT") {
$line=<STDIN>;
chomp $line;
print "Input2: $line\n";
}
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl -w
use strict;
my $line;
while ($line ne "ENDE" && $line ne "QUIT") {
$line=<STDIN>;
chomp $line;
print "Input2: $line\n";
}