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

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: getpwuid Chapter 5
Function Reference
Next: Reference: getservbyport
 

getservbyname

getservbyname 
name
, 
proto

Translates a service (port) name to its corresponding port number. proto is a protocol name such as "tcp" . The return value in list context is:

($name, $aliases, $port_number, $protocol_name)
In scalar context, getservbyname returns only the service port number.


Previous: Reference: getpwuid Perl in a Nutshell Next: Reference: getservbyport
Reference: getpwuid Book Index Reference: getservbyport