in reply to variable through another variable

That will work, but not under strict 'refs'. Symbolic references are considered bad practice (but you can't always avoid them).

$testing = "Hello, World!\n"; $var = "testing"; $data = $$var; print $data; # prints Hello, World!

Using a hash is better, and hashes are useable under strict 'refs':
$hash{"testing"} = "Hello, World!\n"; $var = "testing"; $data = $hash{$var}; print $data;
(You can remove quotes from hash keys that have no \W characters: $hash{testing}.)