k got this one fixed too ........ just needed to put a hashref inside a
while loop.
From: "Graeme McLaren" <[EMAIL PROTECTED]>
To: beginners@perl.org
Subject: template loop problem
Date: Tue, 06 Jun 2006 16:06:47 +0100
MIME-Version: 1.0
X-Originating-IP: [62.254.183.162]
X-Originating-Email: [EMAIL PROTECTED]
X-Sender: [EMAIL PROTECTED]
Received: from lists.develooper.com ([63.251.223.186]) by
bay0-mc2-f3.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 6
Jun 2006 08:07:35 -0700
Received: (qmail 14559 invoked by uid 514); 6 Jun 2006 15:07:32 -0000
Received: (qmail 14546 invoked from network); 6 Jun 2006 15:07:32 -0000
Received: from x1a.develooper.com (HELO x1.develooper.com) (216.52.237.111)
by lists.develooper.com with SMTP; 6 Jun 2006 15:07:32 -0000
Received: (qmail 27436 invoked by uid 225); 6 Jun 2006 15:07:32 -0000
Received: (qmail 27429 invoked by alias); 6 Jun 2006 15:07:31 -0000
Received: pass (x1.develooper.com: domain of [EMAIL PROTECTED]
designates 64.4.56.40 as permitted sender)
Received: from bay101-f30.bay101.hotmail.com (HELO hotmail.com)
(64.4.56.40) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 06
Jun 2006 08:06:57 -0700
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
Tue, 6 Jun 2006 08:06:51 -0700
Received: from 64.4.56.200 by by101fd.bay101.hotmail.msn.com with HTTP;Tue,
06 Jun 2006 15:06:47 GMT
X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlK+3Wz9fWrJ/U=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Post: <mailto:beginners@perl.org>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <mailto:[EMAIL PROTECTED]>
List-Id: <beginners.perl.org>
Delivered-To: mailing list beginners@perl.org
Delivered-To: beginners@perl.org
X-Spam-Status: No, hits=-1.1
required=8.0tests=BAYES_05,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: la.mx.develooper.com
X-OriginalArrivalTime: 06 Jun 2006 15:06:51.0679 (UTC)
FILETIME=[D73D92F0:01C6897A]
Return-Path: [EMAIL PROTECTED]
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>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>