my $var; # undefined $var = undef; # explicitly set to undefined undef $var; # explicitly set to undefined $var = ''; # defined, but empty - will test false $var = 0; # defined with a value - which will test false $var = \0; # defined with a value of null