Those information netstat printed out are actually accessiable through various c structures. What netstat does is simply present those info visually.
I am not aware of any Perl module wrap those c stuff.
Ib this case, you can simply get what you want thru open3 calls.
One thing important is to always do a waitpid after each open3 call, otherwise you will create lots of zombies.