in reply to Re^2: To Split or Not to Split
in thread To Split or Not to Split

Here's the list of tips

open my $data_fh, 'data.txt' or die $!; open my $log_fh, '>>', 'logfile.txt' or die $!; while (<$data_fh>) { chomp; next if /^\s*$/; my ($domain, $IP) = split ','; if ($ip_obj->{src_ip} eq $IP){ print $log_fh "$domain has been found"; } }

Replies are listed 'Best First'.
Re^4: To Split or Not to Split
by burningredmoon (Novice) on Apr 25, 2011 at 00:05 UTC
    Thank you for replying with this! This is what I was needing!!!! It works awesomely, thank you so much!!!!