In perl, how do I declar a variable so that its name is the value of another variable?
I.E.
my $name = "test";
I would like to declare a variable $test automatically.
I would think this would work but it doesn't:
my $$name = "successfully printed test variable";
print $test;
Please help... thanks,
- Jonathan
I.E.
my $name = "test";
I would like to declare a variable $test automatically.
I would think this would work but it doesn't:
my $$name = "successfully printed test variable";
print $test;
Please help... thanks,
- Jonathan