It will match only "daniel". It's the same as: if ($test eq $user).
Regards,
Ahmed

Daniel Falkenberg wrote:

> 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]

Reply via email to