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

Re^2: Is there a way around grep?

by suaveant (Parson)
on Oct 11, 2011 at 15:53 UTC ( #930850=note: print w/replies, xml ) Need Help??

in reply to Re: Is there a way around grep?
in thread Is there a way around grep?

Of course, if only looking for a match a good addition would be a last to break the loop as soon as a match is found.

Or use List::Util::first

                - Ant
                - Some of my best work - (1 2 3)

Replies are listed 'Best First'.
Re^3: Is there a way around grep?
by AnomalousMonk (Canon) on Oct 11, 2011 at 22:42 UTC
Re^3: Is there a way around grep?
by ikegami (Pope) on Oct 15, 2011 at 08:26 UTC
    If you're looking for speed, I bet grep is normally faster than for+last.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930850]
[marto]: so I have to work Saturday, which is good and bad. Bad in the sense that I have to be hear early :( Good in that I am here only as support for another client project, so I get to spend the day working on my personal 'ToDo' list, without the kids :P
[Corion]: marto: Ooof - but yes, being there as only second level support or third level support is good and if you have enough things that you can work on, it won't be a wasted (if paid) day

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-02-28 10:06 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (399 votes). Check out past polls.