FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: Paul am 18 April 2014, 18:39:29

Titel: Gelöst. 99_myUtils.pm
Beitrag von: Paul am 18 April 2014, 18:39:29
meines Erachtens habe ich Datei so gebaut wie im Wiki beschrieben.

package main;
use strict;
use warnings;
use POSIX;
sub
myUtils_Initialize($$)
{
my ($hash) = @_;
}

Sub Kanal_Garten() 
{
use Net::Telnet();
my $tab = new Net::Telnet(Timeout => 50,Port => 8102);
my $fh1 = $tab->dump_log("telnetclient.txt");
my $fh2 = $tab->input_log("telnetclient_input.txt");
my $fh3 = $tab->output_log("telnetclient_output.txt");
$tab->open("192.168.178.29");
$tab->print("vu\n2spk");
}

1;


Aber warum bekomme ich diesen Fehler

syntax error at ./FHEM/99_myUtils.pm line 12, near ") {" syntax error at ./FHEM/99_myUtils.pm line 20, near "}"

Ich suche/probiere nun paar Stunden. Ich kann keinen Klammerfehler sehen.
Titel: Antw:99_myUtils.pm
Beitrag von: betateilchen am 18 April 2014, 18:47:43
schreib doch mal sub klein.
Titel: Antw:99_myUtils.pm
Beitrag von: Paul am 18 April 2014, 18:50:24
Und ich Idiot schaue immer auf kKammern . Steht ja auch was von line 20

Danke das war es
Titel: Antw:Gelöst. 99_myUtils.pm
Beitrag von: betateilchen am 18 April 2014, 18:55:21
da steht aber auch "near" - also "in der Nähe von" das bedeutet: schau auch mal über den Tellerrand raus ;)