in reply to Re^2: Filter File Using HASH
in thread Filter File Using HASH

while($line = <logfile>) { unless( $line =~ /(\.gif|\.jpg|\.jpeg|\.js|\.css|tickerServlet|nag +ios|statusservlet)/ { print total $line; } }

holli, regexed monk

Replies are listed 'Best First'.
Re^4: Filter File Using HASH
by pr19939 (Initiate) on Feb 01, 2005 at 14:29 UTC
    Holli,
    You are really helpful.Thanks.I also would like to know how does this make differnece?.Just curious.Does using of HASH reduce the process time.
    I am just a beginner.Please bear with me.
    Thanks
      there is no hash involved in this code, but a regular expression. if you want to know about hashes, read perldata. If you want to know about regular expressions read perlretut, perlrequick and perlre.

      holli, regexed monk