Stephen Toney has asked for the wisdom of the Perl Monks concerning the following question:
but deleting an entire element does nothing and returns no warning or error:delete ($HoHref->{$element}{$attr});
I don't think the leaf nodes have to be removed first, but in trying to do so, I found that this does nothing either:delete ($HoHref->{$element});
Any clues would be most welcome! Thanks in advance,$HoHref->{$element} = ();
Janitored by Arunbear - replaced pre tags with code tags, to allow code extraction
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: delete from HoH ref
by dave_the_m (Monsignor) on Apr 10, 2005 at 14:39 UTC | |
by Stephen Toney (Sexton) on Apr 10, 2005 at 16:15 UTC | |
|
Re: delete from HoH ref
by holli (Abbot) on Apr 10, 2005 at 14:40 UTC | |
|
Re: delete from HoH ref
by borisz (Canon) on Apr 10, 2005 at 14:45 UTC | |
|
Re: delete from HoH ref
by Zaxo (Archbishop) on Apr 10, 2005 at 14:42 UTC | |
|
Re: delete from HoH ref
by sh1tn (Priest) on Apr 10, 2005 at 14:44 UTC | |
by cog (Parson) on Apr 10, 2005 at 14:55 UTC |