in reply to How do I whack the output of the shell command "exim -bp" into an array?
$output = `mailq | grep frozen`; if ($output) { open(MAIL, "| mail -s sstock\@essex+.ac.uk"); print MAIL $output; close(MAIL); } [download]