Jump to content

Perl Programming/Keywords/getprotobynumber

From Wikibooks, open books for an open world
Previous: getprotobyname Keywords Next: getprotoent

The getprotobynumber keyword

[edit | edit source]

The getprotobynumber function gets the protocol record given its NUMBER.

Syntax

[edit | edit source]
  getprotobynumber NUMBER

Examples

[edit | edit source]
   print getprotobynumber 423;
Previous: getprotobyname Keywords Next: getprotoent