Re: [htmltmpl] HTML::Template Loop Issue

2010-04-08 Thread Shawn Scott
Wow, embarrassing I missed that? At any rate thanks for all the quick replies. On Thu, Apr 8, 2010 at 5:30 PM, Lyle wrote: > Problem with your hash scoping:- > > > my @error = @_; my @error_loop = (); > print header; > foreach (@error) { > my %error_data; > > $error_data{ERROR_DATA}

[htmltmpl] HTML::Template Loop Issue

2010-04-08 Thread Shawn Scott
Good Afternoon, I have been using HTML::Template for some time and have recently run into an starnge issue. I have the following code my @error = @_; my @error_loop = (); my %error_data; print header; foreach (@error) { $error_data{ERROR_DATA} = $_; push(@error_loop, \%error_data