sync-ldap2db.pl Syntax Problem

Hallo, ich habe das Script zur Abspeicherung der Customerdaten in einer DB-Tabelle angepasst und erhalte eine Fehlermeldung bei der Ausführung. Leider habe ich hier keine Idee mehr, was falsch sein könnte. Fehler : syntax error at sync-ldap2db.pl line 66, near "my " Global symbol "%LDAPParams" requires explicit package name at sync-ldap2db.pl line 66, <DATA> line 275. Global symbol "%LDAPParams" requires explicit package name at sync-ldap2db.pl line 82, <DATA> line 275. Execution of sync-ldap2db.pl aborted due to compilation errors. Der Quelltext sieht in diesem Berreich so aus : 65 my $LDAPHost = 'xx.xx.xx.xx' 66 my %LDAPParams = (port => 389, 67 timeout => 120, 68 async => 0, 69 version => 3,); 70 my $LDAPBaseDN = 'ou=Telefonliste,ou=Muenster,dc=alexianer,dc=dc'; 71 my $LDAPBindDN = 'otrs'; 72 my $LDAPBindPW = 'xxxxxxxxxxx'; 73 my $LDAPScope = 'sub'; 74 my $LDAPCharset = 'iso-8859-1'; 75 my $LDAPFilter = ''; 76 #my $LDAPFilter = '(ObjectClass=*)'; 77 78 my $DBCharset = 'utf-8'; 79 my $DBTable = 'user_aktuell'; Was ist falsch? Rüdiger Wanke

Hallo Rüdiger, Zeile 65 mit einem Semikolon abschließen ;-) Viele Grüsse Frank
Hallo, ich habe das Script zur Abspeicherung der Customerdaten in einer DB-Tabelle angepasst und erhalte eine Fehlermeldung bei der Ausführung. Leider habe ich hier keine Idee mehr, was falsch sein könnte.
Fehler : syntax error at sync-ldap2db.pl line 66, near "my " Global symbol "%LDAPParams" requires explicit package name at sync-ldap2db.pl line 66, <DATA> line 275. Global symbol "%LDAPParams" requires explicit package name at sync-ldap2db.pl line 82, <DATA> line 275. Execution of sync-ldap2db.pl aborted due to compilation errors.
Der Quelltext sieht in diesem Berreich so aus :
65 my $LDAPHost = 'xx.xx.xx.xx' 66 my %LDAPParams = (port => 389, 67 timeout => 120, 68 async => 0, 69 version => 3,); 70 my $LDAPBaseDN = 'ou=Telefonliste,ou=Muenster,dc=alexianer,dc=dc'; 71 my $LDAPBindDN = 'otrs'; 72 my $LDAPBindPW = 'xxxxxxxxxxx'; 73 my $LDAPScope = 'sub'; 74 my $LDAPCharset = 'iso-8859-1'; 75 my $LDAPFilter = ''; 76 #my $LDAPFilter = '(ObjectClass=*)'; 77 78 my $DBCharset = 'utf-8'; 79 my $DBTable = 'user_aktuell';
Was ist falsch? Rüdiger Wanke --------------------------------------------------------------------- OTRS mailing list: otrs-de - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs-de To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs-de
NEU! ENTERPRISE SUBSCRIPTION - JETZT informieren und buchen! http://www.otrs.com/de/support/enterprise-subscription/

In Zeile 65 fehlt das abschließende Semikolon (;) - Renée Ruediger Wanke schrieb:
Fehler : syntax error at sync-ldap2db.pl line 66, near "my " Global symbol "%LDAPParams" requires explicit package name at sync-ldap2db.pl line 66, <DATA> line 275. Global symbol "%LDAPParams" requires explicit package name at sync-ldap2db.pl line 82, <DATA> line 275. Execution of sync-ldap2db.pl aborted due to compilation errors.
Der Quelltext sieht in diesem Berreich so aus :
65 my $LDAPHost = 'xx.xx.xx.xx' 66 my %LDAPParams = (port => 389,
-- Perl-Magazin: http://perl-magazin.de Perl-Nachrichten: http://perl-nachrichten.de
participants (3)
-
Frank
-
Renee Bäcker
-
Ruediger Wanke