good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
It's generally a lot better (faster, cleaner, clearer) to do this type of stuff in the database. All you need is an aggregate function that concatenates strings with a space delimiter. Here are several ways to do it for PostgreSQL, SQL Server, and MySQL: String Aggregation in PostgreSQL, SQL Server, and MySQL - Postgres OnLine Journal With Postgres and DBD::Pg you can get an actual array instead of a delimited string. --Daniel In reply to Re: Perl hashes: is there some way of adding more data to the value associated with an existing key?
by danb
|
|