We don't bite newbies here... much | |
PerlMonks |
Re^2: Database Rows into Perl Hashby duelafn (Parson) |
on Mar 07, 2015 at 12:43 UTC ( [id://1119176]=note: print w/replies, xml ) | Need Help?? |
You could collect the bugs into actual arrays,
Whether this is better or wors than constructing a string, of course, depends on how you intend to use the data, though even for producing strings I would generally build the arrays (I hate writing code which builds strings / tests whether the string is non-empty) and join with commas at output time: print join ", ", @{ $hash {$comp} }; Good Day,
In Section
Seekers of Perl Wisdom
|
|