Leser: 1
6 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use warnings;
use strict;
my $option = 1;
while ($option != 0){
print "Please select:\n\n";
print "1 Deutsch\n";
print "2 English\n";
print "0 Exit\n";
print "\nYou've selected: ";
$option = <STDIN>;
print "\n";
if ($option == 0){
print "You've choosen!\n";
};
if ($option == 1){
#Hier müsste der Fehler sein!!!
qx(/de/index_de.pl);
};
if ($option == 2){
qx(/en/index_en.pl);
};
};
/de/index_de.pl
qx(de/index_de.pl);
qx(./de/index_de.pl);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use warnings;
use strict;
my $option = 1;
while ($option != 0){
print "Please select:\n\n";
print "1 Deutsch\n";
print "2 English\n";
print "0 Exit\n";
print "\nYou've selected: ";
$option = <STDIN>;
print "\n";
if ($option == 0){
print "You've choosen!\n";
}
elsif ($option == 1){
#Hier müsste der Fehler sein!!!
my $de_result = qx(/de/index_de.pl);
print $de_result;
}
elsif ($option == 2){
my $result = qx(/en/index_en.pl);
print $result;
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use warnings;
use strict;
my $option = 1;
while ($option != 0){
print "Please select:\n\n";
print "1 Deutsch\n";
print "2 English\n";
print "0 Exit\n";
print "\nYou've selected: ";
$option = getc(STDIN);
$option = 0 if($option=~/\D/);
print "\n|$option|\n";
if ($option == 0){
print "You've choosen!\n";
}
elsif ($option == 1){
qx(/de/index_de.pl);
}
elsif ($option == 2){
qx(/en/index_en.pl);
}
}
6 Einträge, 1 Seite |