Jump to content

Perl Programming/Keywords/getpwnam

From Wikibooks, open books for an open world
Previous: getpwent Keywords Next: getpwuid

The getpwnam keyword

[edit | edit source]

The getpwnam function gets the next passwd record given the users login NAME.

Syntax

[edit | edit source]
  getpwnam NAME

Examples

[edit | edit source]
  getpwnam "Alexis";
Previous: getpwent Keywords Next: getpwuid