On Sun, Oct 05, 2003 at 03:08:35PM +0200, J.J. wrote:
> Andy Hassall wrote:
> >> I had a line:
> >> $emailq = $dbh->quote($in{'email'});
> 
> >  What was it doing? Examples of input and output data?
> >  It doesn't look like you're passing it a hash anyway, you're just passing
> > it a scalar that is an element of a hash.
> 
> Er, bad wording. Meant a hash element. :-)
> 
> In the above case, $emailq would be NULL. $in{'email'} is already tested at
> this point and is definitely not NULL (run through a subroutine that checks
> for proper e-mail address syntax).
> 
> But:
> >> $email = $in{'email'};
> >> $emailq = $dbh->quote($email);
>  - or -
> >> $emailq = $dbh->quote("$in{'email'}");
> # added " quotes around the hash element.
> 
> would both give a correctly 'quoted' variable.

I am very skeptical that you are experiencing the behavior that you
describe.  It seems more likely to me that there was an error in the code,
such as a misspelled hash key.  Would it be possible for you to send us a
small test that demonstrates the behavior that you are experiencing?

Ronald

Reply via email to