in reply to Variable scalar creation.
use strict; $db->FetchRow(); my @names = $db->FieldNames(); my @values = $db->Data(); no strict "refs"; ${$names[$_]} = $values[$_] for 0..$#names; use strict;
By the way, while ($names[$arraycnt] ne '') is an infinite loop. Uninitialized entries in an array are undef, not ''.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Variable scalar creation.
by Thelonious (Scribe) on Feb 13, 2005 at 11:43 UTC | |
|
Re^2: Variable scalar creation.
by snappybo (Initiate) on Feb 13, 2005 at 08:32 UTC |