in reply to Re: assigning to a hash via split
in thread assigning to a hash via split
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; }
|
|---|