I have the below if statement, the '!=' isn't working. The second if statement in this line of code will not work, can someone tell me why?
if ($line =~ $search) {
print "$line <br> <br>";
}
}
if ($line != $search) { #This if statement will not work
print "word is not in file";
}