in reply to Re^3: trying to decide best data structure for problem at hand.
in thread trying to decide best data structure for problem at hand.
I understand the print statement, but the data structure build I do not.for every element in array unlike (which is username) map keys values from hash entries to ??? with name and host. Assign t +his to the array hosts.
Why do you need keys %{$entries{$name} and why not just keys %{$entries}?
I would like to see output like so or something to that effect: I tried adding values uid and gecos but got errors and played for awhi +le and could not get it printed correctly. So you are using name and uid as the keys and host,gecos and gid as va +lues? I seem to struggle with hashes even though I have read Learning and Pr +ogramming Perl. Any advice you have? wlprdadm found with uids of 134 and 135 on /home/dbsmith/passwd.eipdbmp1.hpux $gecos /home/dbsmith/passwd.carappp1.hpux $gecos as an example. thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: trying to decide best data structure for problem at hand.
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 | |
by GrandFather (Saint) on Jan 10, 2007 at 19:19 UTC | |
|