for future reference you might find perlfaq8 quite useful in this regard
/J\
In reply to Re: Getting PERL to snarf STDERR by gellyfish in thread Getting PERL to snarf STDERR by toku