my $ret = findTheTypeByTheName( "whatever" ); if( $ret eq "null" ) { print "Name not found in the code named below."; }