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

Perl in a Nutshell

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

getservent

getservent

Retrieves the next listing from the /etc/services file or its equivalent. Returns null at the end of the file. The return value in list context is:

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


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

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.