You'll need to return 1 for this case, but not you can't without refactoring or using a temp file since this is in a subshell/pipe.
Install libperl as libperl.so.x.yy.z and have its soname be libperl.so.x.
Also, fix the libperl to only run when really needed stage-qa check.
Here I think you need to put this:
(otherwise there will be like 5000 qa errors!)
I like the idea. Haven't looked at the code too closely, but it is a shame perl doesn't do this.