You need to call fetchrow_array in the while condition using the statement handle $subs_str (I think that's the one you mean), not the result of the previous execute.
while ( @row = $subs_str->fetchrow_array ) { recursive_print_traversal($row[0]); }
You are on very thin ice with your variables. In a recursive function it is important to get scoping right. Make your variables lexical with my or else localize them. The easy check for that is to make your code run under strict.
After Compline,
Zaxo
In reply to Re: DBI Frustrations
by Zaxo
in thread DBI Frustrations
by amt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |