perl-module: Add "!= NULL" to assignment used as condition.