Re: HoH problem representing a data structure.

[email protected] (Gunnar Hjalmarsson)
Newsgroups perl.beginners
Message-ID <[email protected]>
Rodrick Brown wrote:
> On Sun, Jun 8, 2008 at 10:37 AM, Gunnar Hjalmarsson <[email protected]>
> wrote:
>>
>>    push @{ $hash->{$homeDir} }, $user;
> 
> Yes please explain how exactly that line works? I know @{} dereferences an
> array so it looks like your pushing each user into an anonymous array.

Yes, that's what I'm doing, so I'm not sure what kind of further 
explanation you want. Sounds like you'd better read some Perl documentation.

     perldoc perlreftut
     perldoc perlref
     perldoc perldsc

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
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.