in reply to Re^2: trying to decide best data structure for problem at hand.
in thread trying to decide best data structure for problem at hand.
It's there because in your OP you say "... I need to identify on what host each user-id ...". It's not used because I didn't need it to illustrate the main issue. However if you change the final print to:
for my $name (@unlike) { my @hosts = map {$entries{$name}{$_}{host}} keys %{$entries{$name} +}; print "$name found on \n\t", join ("\n\t", @hosts), "\n\n"; }
then the output is:
bjose found on /var/tmp/passwd.hostname2.platform /var/tmp/passwd.hostname1.platform
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: trying to decide best data structure for problem at hand.
by mikejones (Scribe) on Jan 05, 2007 at 20:48 UTC | |
by GrandFather (Saint) on Jan 06, 2007 at 11:46 UTC | |
by mikejones (Scribe) on Jan 08, 2007 at 20:18 UTC | |
by GrandFather (Saint) on Jan 08, 2007 at 20:48 UTC | |
by mikejones (Scribe) on Jan 08, 2007 at 21:11 UTC | |
by mikejones (Scribe) on Jan 10, 2007 at 18:31 UTC | |
|