Name
getservent
Synopsis
getservent
Description
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.
Get Perl in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.