in reply to Concatenating Identical Key's Values
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Concatenating Identical Key's Values
by jerrygarciuh (Curate) on Apr 04, 2002 at 04:42 UTC | |
by mla (Beadle) on Apr 04, 2002 at 06:42 UTC | |
by jerrygarciuh (Curate) on Apr 04, 2002 at 14:57 UTC | |
by kappa (Chaplain) on Apr 04, 2002 at 12:43 UTC |