remove deprecated syntax causing warnings with recent versions of Perl