Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: assigning to a hash via split

by japhy (Canon)
on Feb 19, 2001 at 08:11 UTC ( [id://59341]=note: print w/replies, xml ) Need Help??


in reply to Re: assigning to a hash via split
in thread assigning to a hash via split

Ooh, good catch. You get a ++ from me, and I offer this in reply:
sub buildUserHash { use User::pwent; my %users; while (my $obj = getpwent) { $users{$obj->name} = $obj } return \%users; }
Now, you have a hash of User::pwent objects.

japhy -- Perl and Regex Hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://59341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-26 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found