Minor changes to replyfilter to make it compatible with older versions of Perl.