in reply to Efficiency on Code
I assume that last line should be push @array_claim, $TOALL?
If you are trying to do what I think you are (create an array containing all the 'ACCOUNT#' values from a query), try this:
## This assumes your select begins 'SELECT [ACCOUNT#]', ## that is, ACCOUNT# is the first column returned @array_claim = map { $$_[0] } @{$sth->fetchall_arrayref};
Read up on map to understand how that works.
FYI, fetchrow_hashref is the slowest of the fetchrow_ methods, so you want to avoid it unless you have no better choice.
Anima Legato
.oO all things connect through the motion of the mind
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Efficiency on Code
by Anonymous Monk on Jan 06, 2005 at 19:11 UTC | |
by nedals (Deacon) on Jan 06, 2005 at 19:37 UTC | |
by legato (Monk) on Jan 06, 2005 at 21:24 UTC |