in reply to Pattern match

Most likely the string you are matching contains both received 486 response and received 480 response, or the match is failing but there is an issue elsewhere in your code that makes it look like the match succeeds. As already suggested, show us some runnable code that demonstrates the problem.

Perl is the programming world's equivalent of English