From: Sean Russell Date: 2002-02-18T12:06:02+09:00 Subject: Re: x =~ /pat/, "return type?" David Corbin wrote: > "if (x =~ /pat/)" everything is OK. When I trty to pass this .... > "backreferences". Is this correct? If so, how can "coerce" this to be > a boolean as one uses in the if.? Personally, I'd use: if !!x[/pat/] or you could use if !!(x =~ /pat/) or (as has been suggested) if !(x !~ /pat/) -- |.. Each night Father fills me with dread <|> When he sits on the foot of my bed; /|\ I'd not mind that he speaks /| In gibbers and squeaks, | But for seventeen years he's been dead. --- Edward Gorey