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: Re: [asandybox] Stuck on how to iterate a list in a file against a logfile.: Edit Log



asandybox
Novice

Jun 19, 2012, 11:48 AM


Views: 8585
Re: [asandybox] Stuck on how to iterate a list in a file against a logfile.

I attempted to use the following:


Code
  if ($url =~ /help.$ip/) {  
print;
}


Because I figured what if I tried to key off the 6th field and match:

http://help.example.com.org/search/sss?

This way I can just add help.example.com to my ip.txt file and the for loop would add it into the list of items to search.


(This post was edited by asandybox on Jun 19, 2012, 11:49 AM)


Edit Log:
Post edited by asandybox (Novice) on Jun 19, 2012, 11:49 AM


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

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