R
ranrodrig
Folks,
I want to make a variable null if an specific string is in another
variable, so i built the following statement:
$nmsg = "" if $IP =~ /\.image\s/;
but its not working, what i want to do on this is:
if the $IP == "image" then
make $nmsg null.
If you can give me a tip about how to fix this, that would ve very
appreciatted.
TIA & BR.
I want to make a variable null if an specific string is in another
variable, so i built the following statement:
$nmsg = "" if $IP =~ /\.image\s/;
but its not working, what i want to do on this is:
if the $IP == "image" then
make $nmsg null.
If you can give me a tip about how to fix this, that would ve very
appreciatted.
TIA & BR.