in reply to Capturing STDERR to a variable

make your crontab entry something resembling
foobar.pl 2>/path/to/my/stderr.txt
or you could
open STDERR, '>', '/path/to/my/stderr.txt';
although that might not work for processes you exec/system