D
Dave Saville
I have had a good look around and can't find the solution to a problem I have.
CGI script processing ID/password. I have a file of all the ID/Passwords.
I was checking by a foreach down the file with
if ( m/$id $pwd/ ) {.........}
it being a space separator in the file. This worked fine until someone had a
password with a ( in it. Whereupon perl chokes on the (.
Now I know you can get around this in a replace as in s'$foo'$bar' but how can
you do it for a match?
TIA
And before someone says RTFM I don't actually know what it is I would be
looking for in terms of what functionality I want to suppress
--
Regards
Dave Saville
NB Remove -nospam for good email address
CGI script processing ID/password. I have a file of all the ID/Passwords.
I was checking by a foreach down the file with
if ( m/$id $pwd/ ) {.........}
it being a space separator in the file. This worked fine until someone had a
password with a ( in it. Whereupon perl chokes on the (.
Now I know you can get around this in a replace as in s'$foo'$bar' but how can
you do it for a match?
TIA
And before someone says RTFM I don't actually know what it is I would be
looking for in terms of what functionality I want to suppress
--
Regards
Dave Saville
NB Remove -nospam for good email address