I want to delete an element of a hash(of any depth) which has the first key as $key[0], the second key as $key[1] etc, until @key is finished.
For example, if @key=(23,56,78) then i want to manipulate $hash{23}{56}{78}.
I don't know beforehand how many elements @key has.
I have been trying to use the following:
my %the_path;
my $temp=\%the_path;
for(my $cline=0;$cline<=$#keys;$cline++){
my $cfolder=$keys[$cline];
$temp->{$cfolder}={};
$temp=$temp->{$cfolder};
}
But, I'm not sure how to manipulate the element at here. How do I do that?