Are you sure $element is a key in %$HoHref ? What you're doing does work:
Perhaps you have unchomped newlines in your keys or $element? That could explain why your keys aren't found.$ perl -e'my $hohr = {foo=>{},bar=>{},baz=>{}};print delete ($hohr->{b +az}), $/;print keys %$hohr' HASH(0x804b5c0) barfoo$
After Compline,
Zaxo
In reply to Re: delete from HoH ref
by Zaxo
in thread delete from HoH ref
by Stephen Toney
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |