I think instead of /$trip/ you ought to use /\Q$trip\E/
Check out the "Quote and Quote-like Operators" section of perlop.
On Thu, 2003-07-24 at 14:57, [EMAIL PROTECTED] wrote:
> I am trying to get this written for a presentation in the morning (gotta
> love it when the boss dumps a pile of stuff
kevin r wrote:
> This becomes a very long list. From here I would sort and then sequentially
> step through the array. If the current line does not look like the last
> line the print the last line and the number of times it was counted. The
> output looks as follows:
>
> TCP 80 - 25
> TCP 44
You guys are the best. It now works, and fast too. Thank you.
Kevin
From: Bob Showalter <[EMAIL PROTECTED]>
To: 'kevin r' <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: RE: Sorting Help!!!
Date: Thu, 30 Jan 2003 14:20:09 -0500
kevin r wrote:
> Rob,
>
> I
kevin r wrote:
> Rob,
>
> I believe that you are correct in that there is an
> alternative answer.
> Without posting a long script, here is the premise:
>
> while logfile {
> if (certain conditions are met)
> push @portArray, $_ ## pushes certain elements of the $_ into array,
> protocol and por
tion. Any help would be great,
> I have a couple of ideas to make it faster that I am going to try.
>
> Kevin
>
>
>
>
>> From: "Rob Dixon" <[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED]
>> Subject: Re: Sorting Help!!!
>> Date: Thu, 30
OTECTED]
Subject: Re: Sorting Help!!!
Date: Thu, 30 Jan 2003 18:34:11 -
Kevin R wrote:
> Hello,
>
> I am having problems with the sort routine. I am writing a script
> that parses very large firewall logs. At one point during the script
> I end up with a very large array containi
Kevin R wrote:
> Hello,
>
> I am having problems with the sort routine. I am writing a script
> that parses very large firewall logs. At one point during the script
> I end up with a very large array containing all of the destination
> udp and tcp port numbers. This array can be up being over 10
Hi -
> -Original Message-
> From: kevin r [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 8:06 AM
> To: [EMAIL PROTECTED]
> Subject: Sorting Help!!!
>
>
> Hello,
>
> I am having problems with the sort routine. I am writing a script that
> parses very large firewall logs. At