use strict;
my $var = NULL;
will raise an error of Bareword "NULL" not allowed while "strict subs" in use
use strict;
my $var = NULL;
will raise an error of Bareword "NULL" not allowed while "strict subs" in use
There's no NULL in perl. Use undef
when you mean "no value". Also, variables are undefined by default. So my $var
is equivalent to my $var = undef
.