in reply to Recursive dbh executions
Your node title is correct, it's "recursive" you want, not "reentrant". That's a whole 'nuther thing.
The easiest way to fix it would be to pull everything from the query into an array, and then process that recursively. Something like this (untested):
The other thing I noticed is that your $objid is global. That looks like it's going to lead to trouble, although I can't be sure because I don't know what you're trying to do.$sth->execute($objid); for my $row (@{$sth->fetchall_arrayref()}) { ($objid, $type) = @$row; # ..etc..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Recursive dbh executions
by ikegami (Patriarch) on Mar 23, 2005 at 15:43 UTC | |
by VSarkiss (Monsignor) on Mar 23, 2005 at 16:19 UTC |