in reply to Deleting an element in an array referenced by a hash element

splice( @{$foo{$bar}},$idx,1 );

delete only works with hashes

Replies are listed 'Best First'.
Re^2: Deleting an element in an array referenced by a hash element
by jwkrahn (Abbot) on Jul 12, 2010 at 13:03 UTC

    delete also works with arrays but it just deletes the value, it doesn't change the size of the array.