On Wed, 12 May 2004, simran wrote:

> +        foreach my $row (@$value) {
> +          foreach my $key (keys %$row) {
> +            $row->{$key} ||= "";
> +          }
> +        }

Hmmmm.  What happens when $row->{$key} is "0"?  What happens when
undef is set in a loop within a loop?

I think the real fix is to find a way to use exists() rather than
defined() when looking for the variable setting.  That way it doesn't
matter what the value of the var is, just whether it's set or not.
Maybe you could give that a try?

Thanks,
-sam


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to