
Bareword::filehandles lexically disables the use of bareword filehandles with builtin functions, except for the special builtin filehandles stdin, stdout, stderr, argv, argvout and data. to use it in your scripts, simply say
no bareword::filehandles;