[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] [OT] Re: [cgiapp] Apache LogRegex


 On Tue, 05 Apr 2005 19:55:53 +0200, GR Kumaran wrote:

Hi

I have no trouble with this module.

> open ( F, "<$ARGV[0]" ) || die("Unable to open input file.
> $ARGV[0]"); while ( my $line_from_logfile = <F> ) {

Hmmm. Try:

chomp $line_from_logfile;

> eval { %data = $lr->parse($line_from_logfile); }; if (%data) {
> print "parsed successfully\n"; } else { print "parsing failed\n"; }
> } close(F); =======================================


-- 
Cheers
Ron Savage, suppressed on 6/04/2005
http://savage.net.au/index.html
Let the record show: Microsoft is not an Australian company


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.