Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How would I write this using map?

by kwaping (Priest)
on Jan 12, 2009 at 23:55 UTC ( #735838=note: print w/ replies, xml ) Need Help??


in reply to How would I write this using map?

Using map, it would look like this:

push @$ref2array, map $_, sort keys %{$obj->things};
... which could then be distilled to:
push @$ref2array, sort keys %{$obj->things};

---
It's all fine and dandy until someone has to look at the code.


Comment on Re: How would I write this using map?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (18)
As of 2015-07-07 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (90 votes), past polls