SPVM::Sys::User::Passwd - Entry of Password Database
use Sys::User; use Sys::User::Passwd; Sys::User->setpwent; # Get a Sys::User::Passwd object my $password = Sys::User->getpwent; my $user_name = $password->pw_name; Sys::User->endpwent;
Sys::User::Passwd is the class for an entry of the password database.
Sys::User::Passwd
method pw_name : string ();
Get the user name.
method pw_passwd : string ();
Get the user password.
method pw_uid : int ();
Get the user id.
method pw_gid : int ();
Get the group id.
method pw_gecos : string ();
Get the user information.
method pw_dir : string ();
Get the home directory.
method pw_shell : string ();
Get the shell program.
To install SPVM::Sys, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::Sys
CPAN shell
perl -MCPAN -e shell install SPVM::Sys
For more information on module installation, please visit the detailed CPAN module installation guide.