Questions about this topic? Sign up to ask in the talk tab.

Perl/Basics/Boolean Logic/Helper Natives/Undef

From NetSec
Jump to: navigation, search

The undef native determines if a scalar value is un-defined:

 
print "We received a response from the server.\n" unless undef $response;