in reply to how to print value at reference?

If it's

print "@array\n";

for an array, it's

print "@{$ref}\n";

or simply

print "@$ref\n";

for an array ref.