Apparently, POSIX has a function called NULL, and you imported it implicitly or explicitly from POSIX. It is conflicting with an existing sub named NULL in the importing package. The solution is simple: Stop importing NULL from POSIX.
use POSIX qw( names of functions you want to import from POSIX here );