<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 30, 2015 at 9:36 PM, Richard Reina <span dir="ltr"><<a href="mailto:gatorreina@gmail.com" target="_blank">gatorreina@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><span class=""><br><div class="gmail_quote">2015-09-30 14:25 GMT-05:00 WK <span dir="ltr"><<a href="mailto:wanradt@gmail.com" target="_blank">wanradt@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi!<br>
<span><br>
2015-09-30 22:20 GMT+03:00 Richard Reina <<a href="mailto:gatorreina@gmail.com" target="_blank">gatorreina@gmail.com</a>>:<br>
<br>
> Matched_pats.keys.sort %>. However, In this case though the template only<br>
> displays one row because each resulting row in the SQL query all have the<br>
> same ID number. Is there any simple change I can make to get the results to<br>
> fully iterate?<br>
<br>
</span>How could you have hash(ref), where are multiple keys named by same ID?<br>
<br>
Could you show your datastructure?<br>
<br></blockquote></div></span> $q = 'SELECT l.ID, <br> c.ID AS CHLG_ID, c.season, c.YEAR, <br> g.date, g.opp_team, <br> a.NAME AS ANAME, <br> ch.NAME AS CHNAME, <br> p.AMOUNT, <br> u.screenname AS SPONSOR <br> FROM game g, accomp_type a, logro l <br> LEFT JOIN challenge c ON l.ACC_TYPE_ID=c.ACC_TYPE_ID <br> LEFT JOIN patrocinio p ON c.ID=p.CHLNG_ID <br> LEFT JOIN charity ch ON c.CHAR_ID=ch.ID <br> LEFT JOIN patron pn ON p.PTRN_ID=pn.ID <br> LEFT JOIN usuario u ON pn.USER_ID=u.ID <br> WHERE l.GAME_ID=?<br> AND l.status=? <br> AND g.ID=l.GAME_ID <br> AND YEAR(g.DATE)=c.YEAR <br> AND MONTH(g.date) IN (?, ?, ?)<br> AND l.ACC_TYPE_ID=a.ID';<br> <br>$sth = $dbh->prepare($q);<br> $sth->execute($self->{_game_id}, $self->{_logro_status}, @$season_mo[0], @$season_mo[1], @$season_mo[2]);<br> my $pats_ref = $sth->fetchall_hashref('ID');<br></div></div></blockquote><div><br></div><div>Wouldn't be it easier to see the structure of the hash with Data::Dumper? </div><div>Could you please paste the output of debug Dumper($pats_ref); ? <br></div></div></div></div>