in reply to Calculating percent cpu in linux?
open(PS,"ps|"); while (my $thisLine = <PS>){ #do something } [download]