RE: Problems using hash.

2001-06-06 Thread Hasanuddin Tamir
On Wed, 6 Jun 2001, Marcos Rodriguez <[EMAIL PROTECTED]> wrote, > At Wednesday, 6 June 2001, you wrote: > > Many thanks for your help but it doesn't work. I don't know if I > am doing anything wrong of there is another problem. I send you complete > string I am using to execute SQL sentence: > >

RE: Problems using hash.

2001-06-06 Thread Marcos Rodriguez
IL PROTECTED] [mailto:[EMAIL PROTECTED]] >Enviado el: martes, 05 de junio de 2001 18:26 >Para: Simon McCaughey >CC: mrodriguez; beginners >Asunto: Re: Problems using hash. > >On Tue, 5 Jun 2001, [EMAIL PROTECTED] wrote: > >> Your problem seems to be in the use of single quote

Re: Problems using hash.

2001-06-05 Thread Ren Maddox
On Tue, 5 Jun 2001, [EMAIL PROTECTED] wrote: > Your problem seems to be in the use of single quotes see my example > code: > > $fields[3]="x"; > $postInputs{'x'}= "the_test"; > > print "('$postInputs{ '$fields[3]'}')"; > print "(\'$postInputs{ $fields[3]}\')"; > > > try that. or just: print

Re: Problems using hash.

2001-06-05 Thread Simon McCaughey
You don't need the inner set of single quotes, and the outer set must be escaped. Its all to do with string interpolation, $x=10; then print $x; #prints 10 print "$x"; #also prints 10 print '$x'; #prints $x Simon - Original Message - From: Marcos Rodriguez <

Problems using hash.

2001-06-05 Thread Marcos Rodriguez
Hi all, I am working on a program and I am trying to do I show below. %postInputs = readPostInput(); # readPostInput() is a function that return correct values. my $sql_inserta="INSERT INTO $tabla ($fields[3]) VALUES ('$postInputs{ '$fields[3]'}')"; # if I use this sentence when I try to exe