Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: getprotobynameChapter 5
Function Reference
Next: Reference: getprotoent
 

getprotobynumber

getprotobynumber number

Translates a protocol number to its corresponding name. The return value in list context is:

($name, $aliases, $protocol_number)
In scalar context, getprotobynumber returns only the protocol name.


Previous: Reference: getprotobynamePerl in a NutshellNext: Reference: getprotoent
Reference: getprotobynameBook IndexReference: getprotoent