Now, you have a hash of User::pwent objects.sub buildUserHash { use User::pwent; my %users; while (my $obj = getpwent) { $users{$obj->name} = $obj } return \%users; }
In reply to Re: Re: assigning to a hash via split
by japhy
in thread assigning to a hash via split
by aardvark
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |