start page | rating of books | rating of authors | reviews | copyrights

Programming Perl

Programming PerlSearch this book
Previous: 3.2.58 getprotobyname Chapter 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 getprotobyname Programming Perl Next: 3.2.60 getprotoent
3.2.58 getprotobyname Book Index 3.2.60 getprotoent