I posted a question a while and I dont see it anywhere. So here I go again.
I have a if-then-else condition in the main section of my script.
As:
if <cond 1> {
my $var1=a;
}
else
{
my $var1=y;
}
my $var2=$var1;
I try to execute this and the script gives me an error saying it is not able to read the variable2 properly.
How can I rectify this? Thank you.