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

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

by tobyink (Canon)
on Apr 11, 2014 at 21:11 UTC ( #1082021=note: print w/replies, xml ) Need Help??


in reply to map {} list or do {} for list?

If I wanted it to be fast and concise, I'd probably go with:

$hosts{$_}==$table_count or delete($hosts{$_}) for keys %hosts;
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2020-11-28 10:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?