Perl module to allow undef values to have any subroutine