http://www.perlmonks.org?node_id=906274

Kandankarunai has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: delete element in Hash of array
by GrandFather (Saint) on May 23, 2011 at 09:39 UTC

    What have you tried and what documentation did you read?

    True laziness is hard work
Re: delete element in Hash of array
by jethro (Monsignor) on May 23, 2011 at 09:54 UTC
    splice(@{$hash{'thingy'}},$position,1);

    You can always access the array inside a hash of arrays if you put @{} around the hash value $hash{'thingy'}. Quite simple after you get used to it

      Assuming if you know the key you want to delete..

      delete $hash{$key};
        Unfortunately the question is so poorly phrased, that nobody can tell in which nesting level an element should be deleted.

        You're answering another question than jethro did.

        Cheers Rolf