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...
On Wed, 2003-07-30 at 12:15, Sam Tregar wrote:
> On 30 Jul 2003, simran wrote:
>
> > If global vars was turned on, then the first_name variable in the
> > loop would be inherited and would default to "simran" when unset!!!
>
> Are you sure? I thought the way global_vars worked would only inherit
> the value if the variable wasn't set inside the loop at all. Setting
> it to "" explicitly should prevent it from being overridden.
>
> -sam
-------------------------------------------------------
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