CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
complicated matching

 



Allansky
New User

Sep 12, 2002, 8:11 AM

Post #1 of 3 (525 views)
complicated matching Can't Post

Hi, I need help!

I'm trying to carry out a tricky report. From a log file i've extracted logons and logoffs to two separate files and nicely formatted them into "|" separated columns. What i need to do know is to match up logoffs with corresponding logons. This means matching on two columns (port and user).

Any one got any pointers they could suggest as the most appropriate way forward.

Thanks in advance

AlCrazy


davorg
Thaumaturge / Moderator

Sep 12, 2002, 11:00 PM

Post #2 of 3 (517 views)
Re: [Allansky] complicated matching [In reply to] Can't Post

Can we see the code?

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


Allansky
New User

Sep 13, 2002, 2:00 AM

Post #3 of 3 (510 views)
Re: [davorg] complicated matching [In reply to] Can't Post

Sure,

the script is in two and a bit parts.

Part one separates the big log file into three then calls the second script (via a one line script to handle the parameters) to format these files into columns.

the big script is courtesy of Perl Cookbook.



Thanks.

Al.Tongue
Attachments: columns.pl (4.20 KB)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives