Perl extension for emulating troublesome interfaces