support for Perl 5.6 (but not 5.8)