Hi all, I'm getting this error when dying out a template loop array ref:

Software error:
$VAR1 = [
         {
           'team_name' => 'bla2',
           'team_id' => 'test2'
         },
         $VAR1->[0],
         $VAR1->[0]
       ];


push @team_array, \%team;

the above error is when doing "die Dumper([EMAIL PROTECTED]);"

when I print out \%team I get :


$VAR1 = {
         'team_name' => 'Newcastle',
         'team_id' => '2547c17f-f831-5e0f-5351-443100357f2d'
       };
$VAR1 = {
         'team_name' => 'bla1',
         'team_id' => 'test1'
       };
$VAR1 = {
         'team_name' => 'bla2',
         'team_id' => 'test2'
       };


When outputting to the template why doesn't the array ref contain all three of the variables above from printing out \%team ?


Cheers in advance for any tips. Looks like the arrayref is being flattened but I dunno.


G :)



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to