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 ''.
In reply to Re: Variable scalar creation.
by tall_man
in thread Variable scalar creation.
by snappybo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |