perldelta for 8be3c4c

(cherry picked from commit 2705070b44befe30a4157c319c93c18dc5bc01f0)
perldelta for coverity fixes

(cherry picked from commit 2884baee7bf12d7a75a6bd59ef3b2876fe3bb355)
perldelta for 5e8d6835e0

(manually picked from commit 6d9b7c7c45)