getservbyport port, proto
Translates a service (port) number to its corresponding names. proto is a protocol name such as "tcp". The return value in list context is:
"tcp"
($name, $aliases, $port_number, $protocol_name)
getservbyport
[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl Programming | Perl Cookbook ]