Thread Ausgabe fügt immer 0& am Anfang an
(5 answers)
Opened by MULLE123 at 2011-05-20 14:34
Bei mir gibt der Schnippsel alles Korrekt aus:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 #!/usr/bin/perl $i=7; $res = ' MEINEAUSGABE ### '; $descr[$i] = 'Der_Router_123'; $oid_speed[$i]=32.000; $$resultf{$oid_speed[$i]} = '33k'; $stat='running'; $in_err_rat=88; $out_err_rat =3; append("!!!" . $descr[$i] . ": " . "speed (" . $$resultf{$oid_speed[$i]} . "); operational status (" . $stat . "); received/sent packets/error ratio (" . $in_err_rat . "%/" . $out_err_rat . "%)"); print "Status is OK:" . $res; sub append{ my $appendstring = @_[0]; $res= "$res$appendstring"; } ergibt: Status is OK: MEINEAUSGABE ### !!!Der_Router_123: speed (33k); operational status (running); received/sent packets/error ratio (88%/3%) |