Perl Programming/Keywords/getprotobyname

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Previous: getpriority Keywords Next: getprotobynumber

The getprotobyname keyword[edit | edit source]

The getprotobyname function gets the protocol record given its NAME.

Syntax[edit | edit source]

  getprotobyname NAME

Examples[edit | edit source]

   print getprotobyname "Aladin";
Previous: getpriority Keywords Next: getprotobynumber