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

Re: Can this code be optimized further?

by Anonymous Monk
on Feb 10, 2005 at 14:23 UTC ( [id://429733]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @temp = (...);
    my @a = map {/a_(.*)/ ? $1 : ()} @temp;
    my @b = map {/b_(.*)/ ? $1 : ()} @temp;
    
  2. or download this
    my @a = map {/a_(.*)/; $1} grep /a_/ @temp;
    my @b = map {/b_(.*)/; $1} grep /b_/ @temp;
    

Log In?
Username:
Password:

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

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

    No recent polls found