test if variable exists in perl

In most cases just use the perl function defined


if(defined $somevar) {
print "This variable exists\n";
}

Comments

Popular posts from this blog

Vim vi how to reload a file your editing