Perl Programming/Keywords/getservbyport

The getservbyport keyword

The getservbyport function gets the service record given its numeric PORT and PROTOCOL.

Syntax

  getservbyport PORT, PROTOCOL