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:
"tcp"
($name, $aliases, $port_number, $protocol_name)
getservbyname
[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl Programming | Perl Cookbook ]