Following is a sample code:
if ($_ =~ m/received 486 response to blah/){
do this;
}
else{
do that;
}
However this doesn't seem to work correctly, because when a portion of the string is "received 480 response to blah" it still matches and breaks the logic.