I have following piece of code
$var1 = 10;
@arr = (1, \$var1, 3);
print "var1= $$arr[1] \n";
This is not printing value 10, is this syntax $$arr[1]
correct?
using additional variable i was able to print the value
$r = $var[1];
print "var1 = $$r\n";