A small number of Perl fixes and tightenings