christiffer has asked for the wisdom of the Perl Monks concerning the following question:
Am I right in thinking that this places the contents of @row in a hash table, with keys from @FIELDS ? @row is from DBI::fetchrow_array(), so fields must exactly match the column names in the DB?my %h = (); @h{@FIELDS} = @row; $result = \%h;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash newbie
by ikegami (Patriarch) on Jan 28, 2005 at 15:37 UTC | |
by christiffer (Initiate) on Jan 28, 2005 at 15:52 UTC | |
by revdiablo (Prior) on Jan 28, 2005 at 18:28 UTC | |
|
Re: Hash newbie
by Jasper (Chaplain) on Jan 28, 2005 at 17:10 UTC | |
by revdiablo (Prior) on Jan 28, 2005 at 18:23 UTC | |
by ikegami (Patriarch) on Jan 28, 2005 at 21:02 UTC |