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

Re: File Search And Compare

by impossiblerobot (Deacon)
on Feb 18, 2002 at 21:26 UTC ( [id://146252]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #  open LOG, "< $log" or die "Can't open $log: $!";
      while (<DATA>){
        push (@data, $_) if $_ =~ /$ip/;
      }
    #  close LOG;
    
  2. or download this
    open LOG, "< $log" or die "Can't open $log: $!"; # Uncommented
      while (<LOG>){ # Changed filehandle name
        push (@data, $_) if $_ =~ /$ip/;
      }
    close LOG; # Uncommented
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found