Perl Programming/Keywords/getprotobynumber

Previous: getprotobyname Keywords Next: getprotoent

The getprotobynumber keyword

edit

The getprotobynumber function gets the protocol record given its NUMBER.

Syntax

edit
  getprotobynumber NUMBER

Examples

edit
   print getprotobynumber 423;
Previous: getprotobyname Keywords Next: getprotoent