in reply to Re^5: trying to decide best data structure for problem at hand.
in thread trying to decide best data structure for problem at hand.
I have been banging my head at how to get at gecos and gid and uid in the right printed format. The output I would like it is:print Dumper(\%entries),"\n"; which produces 'kloesch' => { '291' => { 'gecos' => '', 'host' => '/home/dbsmith/passwd.sp +sdbp.hpux', 'gid' => '102' } }, 'sapdp4' => { '484' => { 'gecos' => '', 'host' => '/home/dbsmith/passwd.dud +bdv02.aix', 'gid' => '208' } },
thank youwlprdadm => uid #s, gid and gecos found on /home/dbsmith/passwd.eipdbmp1.hpux /home/dbsmith/passwd.carappp1.hpux but of course being uid, gid and gecos actual values. Finally, can a hash only contain keys like so: my %hash; my array= (a..d); $hash{$_}++ foreach @array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: trying to decide best data structure for problem at hand.
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 | |
by GrandFather (Saint) on Jan 10, 2007 at 19:19 UTC | |
by mikejones (Scribe) on Jan 12, 2007 at 20:46 UTC |