On Wed, 2003-07-30 at 14:45, Sam Tregar wrote: > On 30 Jul 2003, simran wrote: > > > Right you are... what you mentioned is indeed the case... but looking > > back at my "real world application" examples... i have found data > > structures such as: > > > > my $data = [ > > { first_name => "john", last_name => 'Smith' }, > > { first_name => "james", last_name => 'Paul' }, > > { first_name => undef, last_name => 'Jones' }, > > ]; > > > > (Note: the undef as opposed to "") > > > > With the above data structure, global_vars does not produce the result > > "i expect" as i expect first_name to be blank/unset in the loop... > > That's correct. Actually, it occurs to me that with just a few > changes it should be possible to tell the difference between a > parameter that was really never set and one that was set to undef. I > think that would be necessary if global_vars=>0 went away. > > -sam
Do you think that it should be implemented as a "bug fix" in the current version anyway? That is, should HTM::Template now in a loop set even values of "undef" to "unset" rather than inherit from global if global_vars is on. simran. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users