You can read the long answer under perlman:perlref.
For your specific example, this should work as follows (untested) :
# ... your stuff here, to load $2 and %one with data push $users{$2}, \%one; ... my $user = $users{$key}; foreach $value ("pid", "cmd", "mem") { print %$user{$value}, " "; };
In reply to Re: Data Structures
by Corion
in thread Data Structures
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |