Re: Perl Script for parsing log files.

2013-05-08 Thread Shlomi Fish
Hi Asad, some comments on your script: On Wed, 8 May 2013 11:34:14 +0530 Asad wrote: > Hi All , > > Thanks to you all for the inputs . I have created the following > script : > > use warnings; > use strict; > use File::Slurp qw(read_file); > use constant LIMIT => 3;## Number of

Re: Perl Script for parsing log files.

2013-05-08 Thread Ed Davis
Hi My first contribution to the list! Probably the simplest way to do this is (once you have apache2 installed and working) to create a script that looks a bit like this: !#/usr/bin/perl use strict; use warnings; sub mylogparser { Your script } mylogparser (); print "Content-type: text/htm

Re: Perl Script for parsing log files.

2013-05-07 Thread Asad
Hi All , Thanks to you all for the inputs . I have created the following script : use warnings; use strict; use File::Slurp qw(read_file); use constant LIMIT => 3;## Number of lines wanted use constant UPPERLIMIT => 9; open (OUTFILE, '>','d:\perl\OUTPUT.TXT'); #my $file = $ARGV[0]

Re: Perl Script for parsing log files.

2013-04-13 Thread timothy adigun
Hi, On Sat, Apr 13, 2013 at 4:50 PM, Asad wrote: > Hi All , > > Greetings ! > >I have completed O'Reily first book Learning Perl . Started writing > small perl programs . However I basically do log file analysis , hence was > thinking is there any perl code around in any of the

Re: Perl Script for parsing log files.

2013-04-13 Thread David Precious
On Sat, 13 Apr 2013 21:20:30 +0530 Asad wrote: >I have completed O'Reily first book Learning Perl . Started > writing small perl programs . However I basically do log file > analysis , hence was thinking is there any perl code around in any of > the book or if anyone already developed for

Perl Script for parsing log files.

2013-04-13 Thread Asad
Hi All , Greetings ! I have completed O'Reily first book Learning Perl . Started writing small perl programs . However I basically do log file analysis , hence was thinking is there any perl code around in any of the book or if anyone already developed for the following requiremen