It will only match anything beginning with "daniel": "daniel", "daniella", "danielson", "daniel smith" .... If you specifically want to match only "daniel" try: /^$user$/
Hth. Sid. -----Original Message----- From: Daniel Falkenberg [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 25, 2001 11:55 PM To: [EMAIL PROTECTED] Subject: Simple question Hey all, Just a simple question could some one give me a clue as to what the folling regex will match... $user = "daniel"; if ( $test =~ /^$user/ ) { print "Hello world!\n"; } Will it match only daniel or will it match dan || danni and so on? Cheers, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]