Re: Sorting Help (***) URgENT!

2003-07-24 Thread Shawn
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

Sorting Help (***) URgENT!

2003-07-24 Thread [EMAIL PROTECTED]
I am trying to get this written for a presentation in the morning (gotta love it when the boss dumps a pile of stuff with 3 hours left in the day) and I have a massive file that is a flat file database (| delimited) that I need to sort through to get all the *** entries out of. The file format is

Re: Sorting Help!!!

2003-01-31 Thread R. Joseph Newton
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

RE: Sorting Help!!!

2003-01-30 Thread kevin r
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

RE: Sorting Help!!!

2003-01-30 Thread Bob Showalter
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

RE: Sorting Help!!!

2003-01-30 Thread Wagner, David --- Senior Programmer Analyst --- WGO
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

Re: Sorting Help!!!

2003-01-30 Thread kevin r
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

Re: Sorting Help!!!

2003-01-30 Thread Rob Dixon
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

RE: Sorting Help!!!

2003-01-30 Thread Beau E. Cox
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 >

Sorting Help!!!

2003-01-30 Thread kevin r
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 100,000 entries. I am tr