Rework output capture... got PHP/Perl working