RE: Another "auto-fill from %fdat" problem

2004-11-03 Thread Gerald Richter
Hi, The following patch fixes the problem: RCS file: /home/cvs/embperl/Embperl/Syntax/EmbperlHTML.pm,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- EmbperlHTML.pm20 Jul 2004 04:59:11 - 1.8 +++ EmbperlHTML.pm4 Nov 2004 06:19:14 - 1.

Re: Another "auto-fill from %fdat" problem

2004-11-03 Thread Torsten Luettgert
On Mi, 2004-11-03 at 16:35, Luiz Fernando B. Ribeiro wrote: > The %fdat hash is magical, since its a tied hash. I have not tried but > does it work if you use the following instead? > > [- $fdat{'number'} = '0'); -] > No, it doesn't work better this way (and yes, I omitted the erroneos ")" from

Re: Another "auto-fill from %fdat" problem

2004-11-03 Thread Luiz Fernando B. Ribeiro
On Wed, 03 Nov 2004 15:29:26 +0100, Torsten Luettgert <[EMAIL PROTECTED]> wrote: Hi, I just hit another problem. I'd expect the following code [- %fdat = ('number' => '0'); -] to give me a text field with a pre-filled zero inside, but instead I get an empty one. It works with values != 0, though.

Another "auto-fill from %fdat" problem

2004-11-03 Thread Torsten Luettgert
Hi, I just hit another problem. I'd expect the following code [- %fdat = ('number' => '0'); -] to give me a text field with a pre-filled zero inside, but instead I get an empty one. It works with values != 0, though. Apparently $fdat{$fieldname} is only checked for being "true". I suppose one