test if variable exists in perl
In most cases just use the perl function defined
if(defined $somevar) {
print "This variable exists\n";
}
if(defined $somevar) {
print "This variable exists\n";
}
Comments