Perl Programming/Keywords/getprotobyname

Previous: getpriority Keywords Next: getprotobynumber

The getprotobyname keyword

edit

The getprotobyname function gets the protocol record given its NAME.

Syntax

edit
  getprotobyname NAME

Examples

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