$pos[$depth] = \$data{$id_attribute}; #### print "${$pos[$depth]}\n";