Hi,

I'm trying to search a .txt file for matching ip addresses. I then want to 
delete those ip addresses.

So far I have opened the file where the ip list is and stored it in an array. 
But How do I search the array for ip's?



Here's what I have so far:


#!/usr/bin/perl

$data_file="/home/uid/Production_IP_Addresses.txt";

open(DAT, $data_file) || die ("Could not open file!\n");

@raw_data=<DAT>;

close(DAT);






Thanks!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to