in reply to Code Issue after Upgrading the perl from 5.14.4 to 5.22.3
Is that the exact error and if not what is $file ?