Thread durch eigene error_log läuft script
(18 answers)
Opened by bieber at 2007-08-02 10:43
Das Problem liegt daran, das bestimmte Zeilen leer sind
und dann durch substr() diese Warnungen ausgworfen werden. Du musst am Anfang der Schleife auf Leerzeilen prüfen, nicht am Ende. Code (perl): (dl
)
1 2 3 4 foreach (@datei) { next if /^\s*(?:[#;]|$)/; chomp; my @work = split /\s+/; } What is a good module? That's hard to say.
What is good code? That's also hard to say. One man's Thing of Beauty is another's man's Evil Hack. |