Re: Understanding Perl script functionality

2008-09-22 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > Mr. Shawn H. Corey wrote: >> On Sun, 2008-09-21 at 09:59 -0700, Ron Bergin wrote: #!/usr/bin/perl # >>> You're missing 2 very important pragmas that should be in every script >>> you write. >>> >>> use warnings; # >>> use strict; # forces you to declare your v

Re: Understanding Perl script functionality

2008-09-22 Thread rkb
Mr. Shawn H. Corey wrote: > On Sun, 2008-09-21 at 09:59 -0700, Ron Bergin wrote: >> >> > #!/usr/bin/perl >> > # >> You're missing 2 very important pragmas that should be in every script >> you write. >> >> use warnings; # >> use strict; # forces you to declare your vars prior to their use. >> [s

Re: Understanding Perl script functionality

2008-09-21 Thread John W. Krahn
Mr. Shawn H. Corey wrote: On Sun, 2008-09-21 at 09:59 -0700, Ron Bergin wrote: #!/usr/bin/perl # You're missing 2 very important pragmas that should be in every script you write. use warnings; # use strict; # forces you to declare your vars prior to their use. # # Set behaviour $log="/var/

Re: Understanding Perl script functionality

2008-09-21 Thread Mr. Shawn H. Corey
On Sun, 2008-09-21 at 09:59 -0700, Ron Bergin wrote: > > > #!/usr/bin/perl > > # > You're missing 2 very important pragmas that should be in every script > you write. > > use warnings; # > use strict; # forces you to declare your vars prior to their use. > > > # > > # Set behaviour > > $log="/

Re: Understanding Perl script functionality

2008-09-21 Thread Ron Bergin
On Sep 19, 10:07 pm, [EMAIL PROTECTED] (Stephen Reese) wrote: > I am working on modifying a script that previously parsed Cisco ACL's > and changing it to parse IPS information. > > Here is an example of the two log formats. > > Sep 19 15:44:29 172.16.2.1 59800: 3725router: Sep 19 19:44:39: %SEC-6-