Perhaps something like this is what you want.
Though, the other ways mentioned so far may be more clear (i.e. not appear to work by accident ;-) update: I'll claim distraction by my wife for such messed up text :-)for my $k (grep { defined } delete $hash{Foo}, keys %hash) { # ... do stuff here }
In reply to Re: Pulling an item to the front of the list
by duff
in thread Pulling an item to the front of the list
by Tanktalus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |