If your code was cut n' pasted, your problem probably lies in your use of $day in the else as you use day (string, not a scalar) beforehand.
Also, you can simplify things by doing away with if/else entirely ...
while( my $ref = $sth->fetchrow_hashref ) { $events{ $ref->{'day'} } .= $ref->{'title'}; }
--k.
In reply to Re: Concatenating Identical Key's Values
by Kanji
in thread Concatenating Identical Key's Values
by jerrygarciuh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |