in reply to perl grep help!

Hi, I want to match the username and password with the ones entered by the end user exactly. If it doesnt exist in the database EXACTLY i want it to say '
if (@username !=$usernameentered) { print "incorrect username entered @username\n"; }
OR/OR BOTH
if (@password !=$passwordentered) { print "incorrect password entered @password\n"; }