Perlcritic complains about the following line of code:
require "bin/menu.pl";
"require" statement with library name as string Use a bareword instead.
However if I change it to a bare word:
require bin/menu.pl
I get an illegal division by zero error.
To reproduce just run perlcritic on any perl script that 'requires' another perl script.
The docs for require suggest using a string: https://perldoc.perl.org/functions/require Is this a bug in perlcritic?