Problems? Is your data what you think it is? | |
PerlMonks |
Re: Adding an element to an arrayby AppleFritter (Vicar) |
on Oct 14, 2015 at 18:51 UTC ( [id://1144901]=note: print w/replies, xml ) | Need Help?? |
If you're pulling data from an SQL database, the best approach may be to let the database do the work for you; SQL has a COUNT aggregate function. Something along the following lines, perhaps: SELECT Name, COUNT(Home) AS HomeCount FROM People GROUP BY Name;
In Section
Seekers of Perl Wisdom
|
|