in reply to anonymous scalar reference
What is the reason to create such references? It can be done with autovivification when needed.
my $ref; $$ref = ''; print $ref; [download]