Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Pulling an item to the front of the list

by duff (Parson)
on Oct 04, 2006 at 04:49 UTC ( [id://576250]=note: print w/replies, xml ) Need Help??


in reply to Pulling an item to the front of the list

Perhaps something like this is what you want.

for my $k (grep { defined } delete $hash{Foo}, keys %hash) { # ... do stuff here }
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 :-)

Replies are listed 'Best First'.
Re^2: Pulling an item to the front of the list
by tbone1 (Monsignor) on Oct 04, 2006 at 11:57 UTC
    Ooooo what a lucky man he was!

    --
    tbone1, YAPS (Yet Another Perl Schlub)
    And remember, if he succeeds, so what.
    - Chick McGee

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://576250]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 22:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found