Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by McA (Priest)
on Apr 11, 2014 at 14:35 UTC ( #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
Node Status?
node history
Node Type: note [id://1081978]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2020-11-24 12:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?