Like what Jeff says, use eq would be a better option. You may wish to know that "$password =~m/bob/" matches any of these :- anybob bobby anybobbie ... i.e so long as it sees a bob, it match. If you wish to match only bob and not bobby or abobby, then you may have to use border like this ~/\bbob\b/
---- end of msg ---- ----- Original Message ----- From: "Luinrandir Hernson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 19, 2002 6:41 PM Subject: help!!!trying to match password I have managed to get this far. I've stripped down read(STDIN,$buffer,$ENV{'CONTENT_LENGTH'}); to the actual input, in this case bob and it works.... but so does bob123 , bobbies and bobs_a_bum etc... Just how do I match the input exactly bob to just bob ??????? thanks in advance code below if ($password =~m/bob/) { wholesale() } else { badpassword() } _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]