The Dump
method takes an optional second array ref where you can specify the desired variable names in the output:
my @arr = ('a', 'b', [qw(d e f)]);
my @names = map "VAR$_", 0 .. $#arr;
print Data::Dumper->Dump(\@arr, \@names);
Output:
$VAR0 = 'a';
$VAR1 = 'b';
$VAR2 = [
'd',
'e',
'f'
];
You might also take a look at Data::Printer. I've never used it, but it seems more oriented to the visual display of data structures.