in reply to how to avoid a reference?
That's not really a reference, that's a symbolic reference which is something a bit different. I hope you mean that you want to avoid symbolic references (which is entirely sensible) not that you want to avoid real references (which would be a bit silly).
The best way around your program would be to use a multi-level hash (called something like %people whic contains all of your data. It would look something like this:
my %people; foreach my $person (@people) foreach my $value (@dbmlist) { my %VAL; dbmopen(%VAL, $value); $people{$value}{$person} = $VAL{$person}; dbmclose(%VAL); } }
A couple of other points that might make your life easier:
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to avoid a reference?
by Aristotle (Chancellor) on Aug 07, 2004 at 16:27 UTC | |
|
Re^2: how to avoid a reference?
by ysth (Canon) on Aug 08, 2004 at 05:30 UTC | |
by tilly (Archbishop) on Aug 08, 2004 at 08:29 UTC |