in reply to LSOF Perl Implementation

well, I can imagine at least three ways to do so:

Sometimes the last alternative is surprinsingly easy, for instance Net::SSH::Perl seems to be programmed this way.

update: I have been looking at the original lsof package and it comes with several sample perl scripts that use it. They go with the pipe aproach.