in reply to Re^4: Real time log parser
in thread Real time log parser
my @cutoff = grep /proxy_/,@_; s/ROUNDROBIN_PARENT\///g for @cutoff; @cutoff = grep /@cutoff/,@cfg;
I'm not sure what this is supposed to be doing, but it somehow looks suspicious ;) In @_ you have one line — as read from FH and passed to ban() ... What do those lines look like, and what do you expect to be in @cutoff after those three lines have executed?
You said it worked from the command line. How did you call it for this?
P.S.: please indent your code properly. You'll not only do us a favor, but yourself, too, in the long run...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Real time log parser
by kazak (Beadle) on Jan 02, 2012 at 21:35 UTC | |
by Eliya (Vicar) on Jan 02, 2012 at 22:51 UTC | |
by kazak (Beadle) on Jan 03, 2012 at 10:33 UTC | |
by Eliya (Vicar) on Jan 03, 2012 at 10:51 UTC |