Dylan Boudreau wrote:

> I could be wrong here as I am still pretty new to perl but couldn't you
> just do it like this
> 
> if ($x =~ /$y/i)
> 
> Dylan
> 

almost correct! :-) how about:

if($x =~ /^$y$/i)

your reg. only checks to see if $y is within $x, not equal.

david

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to