Add pre-commit hook to run perl critic