@proc = `ps -ef | grep $param`; foreach $proc(@proc){ ($userid, $pid, @rest) = split(' ', $proc); print "$userid $pid\n"; }