Thread perl-script zur Mail-log Auswertung (12 answers)
Opened by skynetworks at 2007-08-01 21:53

skynetworks
 2007-08-02 11:13
#97208 #97208
User since
2007-05-24
10 Artikel
BenutzerIn
[default_avatar]
Hallo zusammen,

funktioniert beides nicht so recht:
mit
if ($line =~ m/\breject \b*/)

bekomme ich den Fehler:
\b* matches null string many times in regex; marked by <-- HERE in m/\breject \b* <-- HERE / at ./alle_rejects.pl line 18.

und mit
if ($line =~ m/\breject \b)

bekomme ich den Fehler:
Bareword found where operator expected at ./alle_rejects.pl line 24, near "if ( $line =~ m/from"
(Might be a runaway multi-line // string starting on line 18)
(Do you need to predeclare if?)
Backslash found where operator expected at ./alle_rejects.pl line 24, near "from\"
syntax error at ./alle_rejects.pl line 24, near "if ( $line =~ m/from"
Substitution replacement not terminated at ./alle_rejects.pl line 24.

Das wäre jetzt aber nicht so wild, die Filterfunktion, wie im 1. Posting angegeben wäre wichtiger.....

Danke für die Hilfe & Gruss
Thomas

View full thread perl-script zur Mail-log Auswertung