Programming Perl

Programming PerlSearch this book
Previous: 3.2.58 getprotobynameChapter 3
Functions
Next: 3.2.60 getprotoent
 

3.2.59 getprotobynumber

getprotobynumber NUMBER

This function does the same thing as getprotobynumber(3): it 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: 3.2.58 getprotobynameProgramming PerlNext: 3.2.60 getprotoent
3.2.58 getprotobynameBook Index3.2.60 getprotoent