in reply to Mapping an array to a string

What should that mapping looking like?

You can do something like

use Data::Dumper; my $string = Dumper \@array;

Which represents an array as a string, but it doesn't use a hash (at least not visibly).

Could you rephrase your question, and provide one or two examples what the result should look like?