If you have a /proc filesystem maybe a perl-only solution is possible, but otherwise you'll really want to invoke lsof. It has a special -F option to produce output designed to be easily parsable by awk/perl scripts.
I hope this helps you get started
In reply to Re: Relating AF_INET sockets to processes using Perl
by xmath
in thread Relating AF_INET sockets to processes using Perl
by SIGSEGV
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |