in reply to Getting process IDs
The system function '/bin/ps' has lots of options for selecting what to display:
open PS, '-|', "/bin/ps U $username" or die $!; print while <PS>; close PS or die $!; [download]
After Compline,Zaxo