Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: map {} list or do {} for list?

by McA (Priest)
on Apr 11, 2014 at 14:35 UTC ( [id://1081978]=note: print w/replies, xml ) Need Help??


in reply to Re: map {} list or do {} for list?
in thread map {} list or do {} for list?

Hi Rolf,

just wanted to post this snippet:

for my $host (keys %hosts) { next if $hosts{$host} == $table_count; delete $hosts{$host}; }

but checked the incomming answers before posting redundant things. In this case I had to smile because I do agree with your "taste" (++).

UPDATE: Had an logic error in there: changed < to ==.

McA

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-03-29 10:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found