You need a few parentheses in there...
my ($IP) = $line =~ /(\d+\.\d+\.\d+\.\d+)/; [download]
In reply to Re: Finding specific keyword in Perl by tobyink in thread Finding specific keyword in Perl by zakishah