# these two are equivalent: $a = foobar($b^^); $a = foobar($b); # this would be safer: $a = defined($b)? foobar($b): undef;