I think that's exactly whatI'm doing wrong. I think what's Jenda has been trying to get across to my little brain all along.
Thw way I'm doing it is this $string = "$row[2] $row[4] $row[5] $row[3]"; If ($string .... But $string is already interpolated! What Jenda has been saying is Foreach $item(@row) { if( $item .... The regex isn't the problem it's the interpolation by adding those elements to a variable and checking it. I'll just rewrite it to do it that way. Thanks Again all. Dan -----Original Message----- From: Rob Dixon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 9:48 AM To: [EMAIL PROTECTED] Subject: Re: finding variable name in string Hi Dan "Dan Muey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... That's the idea but the problem is is that @ row seems to transalet itself into 'print userrname; and print > mysecretpassword;' so that when it checks to see if it contains that string '$password' it doesn't, it > contiand the value of $password. So where are you seeing the program line to know that it contains the variable name? If you print the line straight out of the database and it's there, then you're interpolating it yourself later on in the game. Can you show us a little more of what you're doing? Cheers, Rob -- 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]