in reply to Re^2: testing files for valid content
in thread testing files for valid content

It's behaviour is, AFAIR, configurable, but by default I think (and perldoc suggests that) it confesses.

Thus you can either override the default error handling behaviour or possibly use eval (or more elegantly, but less acceptably, Error) to catch the error and process accordingly.

A user level that continues to overstate my experience :-))