FHEM Forum

FHEM => Frontends => FHEMWEB => Thema gestartet von: P.A.Trick am 17 Februar 2018, 14:04:30

Titel: PERL WARNING: Use of implicit split to @_ is deprecated at ./FHEM/01_FHEMWEB.pm
Beitrag von: P.A.Trick am 17 Februar 2018, 14:04:30
Ich bekomme beim Start von FHEM noch eine Warnmeldung angezeigt!
Ist das ein Problem von FHEM oder meiner Config?
Danke im Voraus! Gruß Patrick

2018.02.17 13:59:21 1: PERL WARNING: Use of implicit split to @_ is deprecated at ./FHEM/01_FHEMWEB.pm line 1729, <$fh> line 23.
2018.02.17 13:59:21 5: Loading ./FHEM/01_FHEMWEB.pm
2018.02.17 13:59:21 5: Cmd: >define WEB FHEMWEB 8083 global<


System Info
ConfigType: configFile
SVN rev: 16197
OS: linux
Perl: 5.10.0
uniqueId: 838...

Modules Model Count
CustomReadings 3
FHEMWEB 1
FileLog 1
SYSMON 1
at 1
autocreate 1
cmdalias 1
dummy 1
eventTypes 1
freezemon 1
notify 1
telnet 1
weblink 1
Titel: Antw:PERL WARNING: Use of implicit split to @_ is deprecated at ./FHEM/01_FHEMWEB.pm
Beitrag von: rudolfkoenig am 17 Februar 2018, 18:35:29
Perl 5.10 ist schon relativ alt, falls moeglich solltest du was Neueres suchen.
Sonst: die Ursache ist einer der webCmdLabel Attribute.
Kannst du sie mir bitte mit "list .* webCmdLabel" auflisten?
Titel: Antw:PERL WARNING: Use of implicit split to @_ is deprecated at ./FHEM/01_FHEMWEB.pm
Beitrag von: P.A.Trick am 17 Februar 2018, 18:57:41
Zitat von: rudolfkoenig am 17 Februar 2018, 18:35:29
Perl 5.10 ist schon relativ alt, falls moeglich solltest du was Neueres suchen.
Sonst: die Ursache ist einer der webCmdLabel Attribute.
Kannst du sie mir bitte mit "list .* webCmdLabel" auflisten?

Liefert keine Ausgabe:

✘ fhem@trinity  ~  fhem
inform on
list .* webCmdLabel


Zur Perl Version: ist halt auf einer QNAP und dort ist es mit updates schlecht!
Titel: Antw:PERL WARNING: Use of implicit split to @_ is deprecated at ./FHEM/01_FHEMWEB.pm
Beitrag von: rudolfkoenig am 17 Februar 2018, 19:45:55
Kannst du bitte die erwaehnte Zeile durch
    $nRows = int(split("\n", AttrVal($d, "webCmdLabel", ""))) if(@wcl);
ersetzen, und berichten, ob es hilft?
Sorry, bin noch zu faul perl 5.10 zu installieren :)
Titel: Antw:PERL WARNING: Use of implicit split to @_ is deprecated at ./FHEM/01_FHEMWEB.pm
Beitrag von: P.A.Trick am 18 Februar 2018, 14:12:10
Zitat von: rudolfkoenig am 17 Februar 2018, 19:45:55
Kannst du bitte die erwaehnte Zeile durch
    $nRows = int(split("\n", AttrVal($d, "webCmdLabel", ""))) if(@wcl);
ersetzen, und berichten, ob es hilft?
Sorry, bin noch zu faul perl 5.10 zu installieren :)

Kann ich verstehen :-)

Leider keine Besserung.

2018.02.18 14:11:13 1: Logfile gelöscht
2018.02.18 14:11:18 0: Server shutdown
2018.02.18 14:11:22 1: Including fhem.cfg
2018.02.18 14:11:22 3: telnetPort: port 7072 opened
2018.02.18 14:11:22 1: PERL WARNING: Use of implicit split to @_ is deprecated at ./FHEM/01_FHEMWEB.pm line 1730, <$fh> line 18.
Titel: Antw:PERL WARNING: Use of implicit split to @_ is deprecated at ./FHEM/01_FHEMWEB.pm
Beitrag von: rudolfkoenig am 18 Februar 2018, 20:48:05
Ich habe jetzt nach eine halbe Stunde aufgegeben, perl-5.10 aus den Quellen zu uebersetzen, und ich finde auch keine fertigen Binaries.
Falls jemand mir hier weiterhelfen kann (Build-Anleitung oder Binaries), dann bitte melden.