Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: File Search And Compare

by zengargoyle (Deacon)
on Feb 19, 2002 at 06:51 UTC ( [id://146340]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $ts_fmt = 'MMM DD HH:MM:SS ';
    my $line = 'Feb 18 00:12:14 foo bar bat baz fwa';
    ...
    # $time is the time part.
    # $line holds the part after the time is removed.
    
  2. or download this
    my $match = 'fwa';
    if ( -1 != index($line,$match)) {
      # matched!
      $seen_lines{$line}++;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://146340]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-24 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found