Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Condensing a grep into a sort

by Roy Johnson (Monsignor)
on Jun 09, 2009 at 17:26 UTC ( #770019=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print map {"$_->[0]\n"}
          sort {$a->[1] <=> $b->[1]}
          map  { [$_, (/C(\d*)/)[0]] }
          grep { /P/} 
          @compounds;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://770019]
help
Chatterbox?
[LanX]: DBI: is there an easy method to get the content of a column as an array

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2018-07-16 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (344 votes). Check out past polls.

    Notices?