Hi,
I want to use string as a variable name, please explain if there is any way
in perl.
Please have a look on below cases, I want to implement case 2.
e.g.
Case 1: if I am using global varibale without strict module
$var = "this";
$this = "realvalue";
print ${$var};
OUTPUT: realvalue
Case 2: if I am using strict module and my variables
use strict;
my $var = "this";
my $this = "realvalue";
print ${$var};
OUTPUT: Can't use string ("this") as a SCALAR ref while "strict
refs" in use at 2.pl line 6.
--
*Piyush Verma*