in reply to ignoring errors

Since you write that you've already determined that the 'void' warnings are spurious, all that is left is to disable them.

use warnings; no warnings qw(void);