Re: HoH problem representing a data structure.

[email protected] ("Rodrick Brown")
Newsgroups perl.beginners
Message-ID <[email protected]>
I want each Hash element to point to an array or list of users that share
the same home dir instead of another hash.
ie.
$VAR1 = {
          '/var/imap' => {
                           '_cyrus'
                         },
          '/var/empty' => {
                            '_spotlight'
                            '_appserver'
          '/var/root' => {
                           'root',
                           'daemon'
                         },
          '/Library/WebServer' => {
                                    '_www',
                                    'apache'
                                  },
          }


On Sun, Jun 8, 2008 at 5:22 AM, John W. Krahn <[email protected]> wrote:

> Rodrick Brown wrote:
>
>> I'm trying to fully understand references so I created a data structure to
>> stores the output of users on my system who share home dirs.
>> I use a HoH to represent this data set but its not working as expected.
>> Conceptually I can visualize how the data should look
>>
>
> Perhaps if you provided a hard copy of that visualization we might be able
> to translate it into Perl code.
>
>
> John
> --
> Perl isn't a toolbox, but a small machine shop where you
> can special-order certain sorts of tools at low cost and
> in short order.                            -- Larry Wall
>
> --
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> http://learn.perl.org/
>
>
>


-- 
[ Rodrick R. Brown ]
http://www.rodrickbrown.com http://www.linkedin.com/in/rodrickbrown
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.