Never mind, I found how to do it. Just modified the while loop a bit to look like this:
while( my( $comp, $bug_num ) = $sth->fetchrow_array() ) { if (($hash {$comp} eq '') ||($hash {$comp} == '' )) { $hash{ $comp }.=$bug_num; } else { $hash{ $comp}.=",$bug_num"; } }
Is there any other way to do it... specially as the saying goes >> TIMTOWTDI
In reply to Re: Database Rows into Perl Hash
by vishi
in thread Database Rows into Perl Hash
by vishi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |