open(FH, "hash.txt"); my @hash = ; close FH; my $object; my $list = '$object =' . "@hash"; eval ($list);