Danke, das mit den doppelt deklarierten Variablen habe ich nun in Ordnung gebracht.
Kannst du mir nun auch noch die Ursache für folgende Fehler nennen?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
root@ks359263:/daten# clear
root@ks359263:/daten# perl cmag_mysql.pl
syntax error at cmag_mysql.pl line 15, near "$sth
my "
Global symbol "$erstellen" requires explicit package name at cmag_mysql.pl line 16.
Global symbol "$erstellen" requires explicit package name at cmag_mysql.pl line 30.
Global symbol "$erstellen" requires explicit package name at cmag_mysql.pl line 48.
Global symbol "$guelldaten" requires explicit package name at cmag_mysql.pl line 61.
Global symbol "$gesamt" requires explicit package name at cmag_mysql.pl line 63.
Global symbol "$guelldaten" requires explicit package name at cmag_mysql.pl line 75.
Global symbol "$zeiger" requires explicit package name at cmag_mysql.pl line 77.
Global symbol "$felder" requires explicit package name at cmag_mysql.pl line 88.
Global symbol "$zeiger" requires explicit package name at cmag_mysql.pl line 88.
Global symbol "@ergebnis" requires explicit package name at cmag_mysql.pl line 90.
Global symbol "$felder" requires explicit package name at cmag_mysql.pl line 90.
Global symbol "@ergebnis" requires explicit package name at cmag_mysql.pl line 92.
Global symbol "@ergebnis" requires explicit package name at cmag_mysql.pl line 92.
Global symbol "@ergebnis" requires explicit package name at cmag_mysql.pl line 92.
Global symbol "$gesamt" requires explicit package name at cmag_mysql.pl line 121.
Execution of cmag_mysql.pl aborted due to compilation errors.
root@ks359263:/daten#